From 234e7036e3b8a02e924e0a95c98aa7a54537f6ca Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 7 Oct 2019 09:16:23 +0200 Subject: [PATCH] Tweak `replies_in_stream` behavior. Only show replies from actors in the following collection. --- core/notifications.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/notifications.py b/core/notifications.py index bf4f1c7..a792a6a 100644 --- a/core/notifications.py +++ b/core/notifications.py @@ -207,7 +207,9 @@ def _create_set_inbox_flags(activity: ap.Create, new_meta: _NewMeta) -> None: # Also set the "keep mark" for the GC (as we want to keep it forever) _set_flag(new_meta, MetaKey.GC_KEEP) - if not in_reply_to or REPLIES_IN_STREAM: + if not in_reply_to or ( + REPLIES_IN_STREAM and obj.get_actor().id in ap.get_backend().following() + ): # A good candidate for displaying in the stream _set_flag(new_meta, MetaKey.STREAM)