Skip to content

Commit

Permalink
Parse OStatus tag URIs in ActivityPub handlers when those are local (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Aug 18, 2017
1 parent 2edfdab commit c7d2619
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/lib/activitypub/tag_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def uri_to_resource(uri, klass)
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
Expand Down

0 comments on commit c7d2619

Please sign in to comment.