From 2d4c2a7ee21a2b033aa0bdc31ac563ee374bc398 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 20 Apr 2020 16:37:53 -0700 Subject: [PATCH] Process incoming federated quotes Fixes #149 --- fedireads/incoming.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fedireads/incoming.py b/fedireads/incoming.py index 773e4fbe..f14b7d62 100644 --- a/fedireads/incoming.py +++ b/fedireads/incoming.py @@ -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