about summary refs log tree commit diff
path: root/app/serializers/activitypub
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-09-02 18:42:50 +0200
committerGitHub <noreply@github.com>2020-09-02 18:42:50 +0200
commitabee40b2322f191ce5da040c60cea1b0f09eee78 (patch)
treeeb03d30c1f272a65f779a4a7c901b9ab3af036df /app/serializers/activitypub
parent33ad850c982bbe03214e2e2870751920721c23af (diff)
Add outbox attribute to instance actor (#14721)
It's not useful for now, but it's required by ActivityPub
Diffstat (limited to 'app/serializers/activitypub')
-rw-r--r--app/serializers/activitypub/actor_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/activitypub/actor_serializer.rb b/app/serializers/activitypub/actor_serializer.rb
index da4a92728..5d2741b17 100644
--- a/app/serializers/activitypub/actor_serializer.rb
+++ b/app/serializers/activitypub/actor_serializer.rb
@@ -74,7 +74,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
   end
 
   def outbox
-    account_outbox_url(object)
+    object.instance_actor? ? instance_actor_outbox_url : account_outbox_url(object)
   end
 
   def featured