Adds published date separate from created date

This commit is contained in:
Mouse Reeve
2020-03-06 16:35:56 -08:00
parent 984c04a374
commit e45b04f22e
7 changed files with 29 additions and 7 deletions

View File

@ -34,7 +34,7 @@ def get_status(status):
'id': uri,
'url': uri,
'inReplyTo': reply_parent_id,
'published': status.created_date.isoformat(),
'published': status.published_date.isoformat(),
'attributedTo': user.actor,
# TODO: assuming all posts are public -- should check privacy db field
'to': ['https://www.w3.org/ns/activitystreams#Public'],