From 510dab4c0af7eec630fb32ed0f3978a7cffc840c Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 6 Mar 2023 20:56:57 -0800 Subject: [PATCH] make boosts of group posts by the owner invisible even if it isn't one of our groups. --- include/conversation.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 0e23de1fc..934905df6 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -276,8 +276,13 @@ function visible_activity($item) // of those patforms. Hide them on our own platform because they make the conversation look like dung. // Performance wise this is a mess because we need to send two activities for every group comment. - if ($item['verb'] === 'Announce' && $item['author_xchan'] === $item['owner_xchan']) { - return false; + if ($item['verb'] === 'Announce') { + if ($item['author_xchan'] === $item['owner_xchan']) { + return false; + } + if (isset($item['author']) && intval($item['author']['xchan_type']) === XCHAN_TYPE_GROUP) { + return false; + } } foreach ($hidden_activities as $act) {