refactor fetch_person_url_to callback
This commit is contained in:
parent
1790efad08
commit
374915b45f
1 changed files with 1 additions and 1 deletions
|
|
@ -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|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue