one more tweak

This commit is contained in:
Mike Macgirvin 2023-10-25 21:30:30 +11:00
parent 806bcb349a
commit e478d54ef8

View file

@ -220,7 +220,7 @@ class Inbox extends Controller
// There is a flaw here if both attributedTo entities have followers on this site, but I think in practice // There is a flaw here if both attributedTo entities have followers on this site, but I think in practice
// they will normally follow the group and not the actor. Will deal with that paradox another day, probably by // they will normally follow the group and not the actor. Will deal with that paradox another day, probably by
// duplicating the payload and delivering to each. // duplicating the payload and delivering to each.
elseif (str_contains($AS->actor,'/accounts/peertube') && !empty($AS->obj['attributedTo']) && is_array($AS->obj['attributedTo'])) { elseif (str_contains($AS->actor,'/accounts/peertube') && !empty($AS->obj['attributedTo']) && is_array($AS->obj['attributedTo']) && $act->type !== 'View') {
foreach ($AS->obj['attributedTo'] as $actor) { foreach ($AS->obj['attributedTo'] as $actor) {
if (!empty($actor['id'])) { if (!empty($actor['id'])) {
$tmp = q("SELECT * from channel where channel_id in $tmp = q("SELECT * from channel where channel_id in