mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
fix k&t url, add followers to "upstream" public comments on uncontained conversations
This commit is contained in:
parent
52e5fc545c
commit
634608fe01
2 changed files with 5 additions and 2 deletions
|
@ -27,7 +27,7 @@ A Yunohost install is present in
|
||||||
https://apps.yunohost.org/app/streams
|
https://apps.yunohost.org/app/streams
|
||||||
|
|
||||||
Managed hosting is available from
|
Managed hosting is available from
|
||||||
https://knthost.com
|
https://knthost.com/streams
|
||||||
|
|
||||||
Language translation instructions are provided in
|
Language translation instructions are provided in
|
||||||
https://codeberg.org/streams/streams/src/branch/release/util/README
|
https://codeberg.org/streams/streams/src/branch/release/util/README
|
||||||
|
|
|
@ -443,9 +443,12 @@ class Notifier implements DaemonInterface
|
||||||
self::$private = true;
|
self::$private = true;
|
||||||
$upstream = true;
|
$upstream = true;
|
||||||
self::$packet_type = 'response';
|
self::$packet_type = 'response';
|
||||||
|
// send public replies to your followers if using hyperdrive or if this is not a contained conversation;
|
||||||
|
// for instance if the thread is from a microblog platform.
|
||||||
|
$isContained = str_contains($parent_item['tgt_type'], 'Collection') || ($parent_item['item_restrict'] & 4);
|
||||||
$is_moderated = their_perms_contains($parent_item['uid'], (is_array($sendto) ? $sendto[0] : $sendto), 'moderated');
|
$is_moderated = their_perms_contains($parent_item['uid'], (is_array($sendto) ? $sendto[0] : $sendto), 'moderated');
|
||||||
if ($relay_to_owner && $thread_is_public && (! $is_moderated) && (! $question) && (! Channel::is_group($parent_item['uid']))) {
|
if ($relay_to_owner && $thread_is_public && (! $is_moderated) && (! $question) && (! Channel::is_group($parent_item['uid']))) {
|
||||||
if (get_pconfig($target_item['uid'], 'system', 'hyperdrive', true)) {
|
if (get_pconfig($target_item['uid'], 'system', 'hyperdrive', true) || !$isContained) {
|
||||||
Run::Summon([ 'Notifier' , 'hyper', $item_id ]);
|
Run::Summon([ 'Notifier' , 'hyper', $item_id ]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue