Fixes accept activity json
This commit is contained in:
parent
e7dc4af907
commit
78131805b7
2 changed files with 7 additions and 6 deletions
|
@ -17,12 +17,13 @@ def get_follow_request(user, to_follow):
|
|||
}
|
||||
|
||||
|
||||
def get_accept(user, to_follow, request_activity):
|
||||
def get_accept(user, request_activity):
|
||||
''' accept a follow request '''
|
||||
return {
|
||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
||||
'id': '%s#accepts/follows/' % to_follow.absolute_id,
|
||||
'id': '%s#accepts/follows/' % user.absolute_id,
|
||||
'type': 'Accept',
|
||||
'actor': to_follow.actor,
|
||||
'object': activity,
|
||||
'actor': user.actor,
|
||||
'object': request_activity,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue