mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 11:14:28 +00:00
Support activities forwarded in a Read
This commit is contained in:
parent
ced6240946
commit
786a709a40
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue