refactor fetch_person_url_to callback

This commit is contained in:
Benjamin Neff 2016-03-15 02:57:19 +01:00
parent 1790efad08
commit 374915b45f

View file

@ -116,7 +116,7 @@ DiasporaFederation.configure do |config|
end end
on :fetch_person_url_to do |diaspora_id, path| on :fetch_person_url_to do |diaspora_id, path|
Person.find_by(diaspora_handle: diaspora_id).send(:url_to, path) Pod.joins(:people).find_by(people: {diaspora_handle: diaspora_id}).url_to(path)
end end
on :update_pod do |url, status| on :update_pod do |url, status|