Support activities forwarded in a Read

This commit is contained in:
Thomas Sileo 2019-09-06 19:51:14 +02:00
parent ced6240946
commit 786a709a40

View file

@ -219,6 +219,13 @@ def post_to_inbox(activity: ap.BaseActivity) -> None:
Tasks.cache_actor(activity.id) Tasks.cache_actor(activity.id)
return 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 # Hubzilla forwards activities in a Create, process them as possible replies
if activity.has_type(ap.ActivityType.CREATE) and server(activity.id) != server( if activity.has_type(ap.ActivityType.CREATE) and server(activity.id) != server(
activity.get_object_id() activity.get_object_id()