return short actor id when not nomadic

This commit is contained in:
Mike Macgirvin 2024-07-07 09:03:08 +10:00
parent e98797fe2d
commit dded3cdbb2

View file

@ -1663,13 +1663,13 @@ class Activity
$channel = ((array_key_exists('channel_id', $p)) ? $p : Channel::from_hash($p['xchan_hash']));
if ($channel) {
if (!$extended) {
return Channel::getDidResolver($channel, true);
}
$nomadic = (int)PConfig::Get($channel['channel_id'], 'system', 'nomadicAP');
if ($legacy) {
$nomadic = false;
}
if ($nomadic && !$extended) {
return Channel::getDidResolver($channel, true);
}
if ($export) {
$nomadic = true;
}