mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 23:26:42 +00:00
parent
4f568987f5
commit
2d4c2a7ee2
1 changed files with 3 additions and 1 deletions
|
@ -224,11 +224,13 @@ def handle_create(activity):
|
|||
# we really oughtn't even be sending in this case
|
||||
return
|
||||
|
||||
if activity['object'].get('fedireadsType') in ['Review', 'Comment'] and \
|
||||
if activity['object'].get('fedireadsType') and \
|
||||
'inReplyToBook' in activity['object']:
|
||||
try:
|
||||
if activity['object']['fedireadsType'] == 'Review':
|
||||
builder = status_builder.create_review_from_activity
|
||||
elif activity['object']['fedireadsType'] == 'Quotation':
|
||||
builder = status_builder.create_quotation_from_activity
|
||||
else:
|
||||
builder = status_builder.create_comment_from_activity
|
||||
|
||||
|
|
Loading…
Reference in a new issue