This commit is contained in:
parent
ad892dbc0c
commit
116b8a6363
3 changed files with 24 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue