Fix tag_manager object_type not found error
This commit is contained in:
parent
2a9fcced3b
commit
1fc1d5fe3c
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ class ActivityPub::TagManager
|
|||
def uri_for(target)
|
||||
return target.uri if target.respond_to?(:local?) && !target.local?
|
||||
|
||||
return unless target.respond_to?(:object_type)
|
||||
|
||||
case target.object_type
|
||||
when :person
|
||||
target.instance_actor? ? instance_actor_url : account_url(target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue