mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:55:18 +00:00
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:
parent
71c3c53ed3
commit
d27e81ef2a
1 changed files with 13 additions and 1 deletions
|
@ -1565,7 +1565,19 @@ class Activity
|
||||||
$tmp = expand_acl($i['allow_gid']);
|
$tmp = expand_acl($i['allow_gid']);
|
||||||
if ($tmp) {
|
if ($tmp) {
|
||||||
foreach ($tmp as $t) {
|
foreach ($tmp as $t) {
|
||||||
$ret[] = z_root() . '/lists/' . $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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue