0
0
Fork 0

Fix #4607 - Accept/reject activities use FollowRequest, which has inverse relations (#4616)

This commit is contained in:
Eugen Rochko 2017-08-17 22:15:37 +02:00 committed by GitHub
parent ad892dbc0c
commit 116b8a6363
3 changed files with 24 additions and 2 deletions

View file

@ -3,7 +3,7 @@
class ActivityPub::AcceptFollowSerializer < ActiveModel::Serializer
attributes :id, :type, :actor
has_one :object, serializer: ActivityPub::FollowSerializer
has_one :object, serializer: ActivityPub::InverseFollowSerializer
def id
[ActivityPub::TagManager.instance.uri_for(object.target_account), '#accepts/follows/', object.id].join