Boosts - handle url, store in database, send, notify.

This commit is contained in:
Adam Kelly
2020-03-30 15:13:32 +01:00
parent 84d7e7c394
commit 745ca7d4ff
11 changed files with 133 additions and 2 deletions

View File

@ -158,6 +158,17 @@ def get_unfavorite(favorite):
}
def get_boost(boost):
''' boost/announce a post '''
return {
'@context': 'https://www.w3.org/ns/activitystreams',
'id': boost.absolute_id,
'type': 'Announce',
'actor': boost.user.actor,
'object': boost.boosted_status.absolute_id,
}
def get_add_tag(tag):
''' add activity for tagging a book '''
uuid = uuid4()