Fix tag_manager object_type not found error

This commit is contained in:
KMY 2023-05-20 21:48:28 +09:00
parent 2a9fcced3b
commit 1fc1d5fe3c

View file

@ -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)