about summary refs log tree commit diff
path: root/app/lib/activitypub
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-03-28 15:19:05 +0100
committerGitHub <noreply@github.com>2020-03-28 15:19:05 +0100
commita192b193bdf7013df09c6cd63916274cd9d47cf7 (patch)
tree413de2a72a6f3a126e19e12178524ca33c27e436 /app/lib/activitypub
parent02f1c04fabab221130de8dfb5611be81825b193b (diff)
parentd98fabf2ee44c2c25775066abda46552ab05993e (diff)
Merge pull request #1308 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r--app/lib/activitypub/tag_manager.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/tag_manager.rb b/app/lib/activitypub/tag_manager.rb
index ed680d762..1523f86d4 100644
--- a/app/lib/activitypub/tag_manager.rb
+++ b/app/lib/activitypub/tag_manager.rb
@@ -15,6 +15,8 @@ class ActivityPub::TagManager
   def url_for(target)
     return target.url if target.respond_to?(:local?) && !target.local?
 
+    return unless target.respond_to?(:object_type)
+
     case target.object_type
     when :person
       target.instance_actor? ? about_more_url(instance_actor: true) : short_account_url(target)