From 786a709a40fb707675d502d1a82f0f3a7854f5c5 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 6 Sep 2019 19:51:14 +0200 Subject: [PATCH] Support activities forwarded in a Read --- core/activitypub.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/activitypub.py b/core/activitypub.py index 30d48cb..044a8ef 100644 --- a/core/activitypub.py +++ b/core/activitypub.py @@ -219,6 +219,13 @@ def post_to_inbox(activity: ap.BaseActivity) -> None: Tasks.cache_actor(activity.id) return + # Honk forwards activities in a Read, process them as replies + if activity.has_type(ap.ActivityType.READ): + Tasks.process_reply(activity.get_object_id()) + return + + # TODO(tsileo): support ignore from Honk + # Hubzilla forwards activities in a Create, process them as possible replies if activity.has_type(ap.ActivityType.CREATE) and server(activity.id) != server( activity.get_object_id()