more testing

This commit is contained in:
Mike Macgirvin 2024-01-23 22:04:08 +11:00
parent 97ef0244f6
commit d710cfe2df

View file

@ -3300,7 +3300,7 @@ class Activity
}
// We shouldn't need to store collection contents which could be large. We will often only require the meta-data
if (isset($item['tgt_type']) && str_contains($item['tgt_type'], 'Collection')) {
$item['target'] = ['id' => $act->tgt['id'], 'type' => $item['tgt_type'], 'attributedTo' => ((isset($act->tgt['attributedTo'])) ? $act->get_actor('attributedTo', $act->tgt) : $act->get_actor('actor', $act->tgt))];
$item['target'] = ['id' => $act->tgt['id'], 'type' => $item['tgt_type'], 'attributedTo' => $act->tgt['attributedTo'] ?? $act->tgt['actor']];
}
}