Adds image attachment field to status model
This commit is contained in:
parent
56638f79cf
commit
dab0aeffb2
3 changed files with 25 additions and 1 deletions
|
@ -13,7 +13,7 @@ def delete_status(status):
|
|||
|
||||
|
||||
def create_status(activity):
|
||||
''' unfortunately, it's not QUITE as simple as deserialiing it '''
|
||||
''' unfortunately, it's not QUITE as simple as deserializing it '''
|
||||
# render the json into an activity object
|
||||
serializer = activitypub.activity_objects[activity['type']]
|
||||
activity = serializer(**activity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue