From 296bb379ec248e116827315dfde9097f784c05dd Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 15 Feb 2020 13:14:43 -0800 Subject: [PATCH] Small syntax fix --- fedireads/incoming.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fedireads/incoming.py b/fedireads/incoming.py index 544b40ed8..786163f21 100644 --- a/fedireads/incoming.py +++ b/fedireads/incoming.py @@ -36,15 +36,17 @@ def shared_inbox(request): if activity['type'] == 'Add': response = handle_incoming_shelve(activity) - if activity['type'] == 'Follow': + elif activity['type'] == 'Follow': response = handle_incoming_follow(activity) - if activity['type'] == 'Create': + elif activity['type'] == 'Create': response = handle_incoming_create(activity) - if activity['type'] == 'Accept': + elif activity['type'] == 'Accept': response = handle_incoming_follow_accept(activity) + # TODO: Undo, Remove, etc + return response