translate connections virtual group to followers for the benefit of primitive projects that don't understand aspects/circles or virtual groups

This commit is contained in:
Mike Macgirvin 2023-08-26 08:50:01 +10:00
parent 71c3c53ed3
commit d27e81ef2a

View file

@ -1565,9 +1565,21 @@ class Activity
$tmp = expand_acl($i['allow_gid']);
if ($tmp) {
foreach ($tmp as $t) {
if (str_starts_with($t, 'connections:')) {
$split = explode(':', $t, 2);
$listChannel = Channel::from_hash($split[1]);
if ($listChannel) {
$ret[] = z_root() . '/followers/' . $listChannel['channel_address'];
}
else {
$ret[] = z_root() . '/lists/' . $t;
}
}
else {
$ret[] = z_root() . '/lists/' . $t;
}
}
}
}
if ($i['allow_cid']) {