Default owner_xchan to $observer (sender) in Activity::store() - this is because in case where an announce holds a relayed activity we drop the announce and process the relayed activity only. In that case actor.id as set in Activity::decode_note() will not be the correct owner. In other cases actor.id and sender should be identical.

This commit is contained in:
Mario
2023-02-27 08:42:13 +00:00
parent 9ab9ac0e2e
commit f032bcc5f2

View File

@@ -2852,6 +2852,7 @@ class Activity {
}
$allowed = false;
$item['owner_xchan'] = $observer_hash;
// TODO: not implemented
// $permit_mentions = intval(PConfig::Get($channel['channel_id'], 'system','permit_all_mentions') && i_am_mentioned($channel,$item));