mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
make boosts of group posts by the owner invisible even if it isn't one of our groups.
This commit is contained in:
parent
a984ba1e89
commit
510dab4c0a
1 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue