Parse OStatus tag URIs in ActivityPub handlers when those are local (#4631)

lolsob-rspec
Eugen Rochko 2017-08-18 11:24:44 +02:00 committed by GitHub
parent c0642a0042
commit e96d64397e
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ class ActivityPub::TagManager
else
klass.find_by(id: uri_to_local_id(uri))
end
elsif ::TagManager.instance.local_id?(uri)
klass.find_by(id: ::TagManager.instance.unique_tag_to_local_id(uri, klass.to_s))
else
klass.find_by(uri: uri)
end