Merge branch 'dev' into deliver

This commit is contained in:
Mike Macgirvin 2024-05-30 08:01:06 +10:00
commit 2f58ca3dbe

View file

@ -422,13 +422,13 @@ class Notifier implements DaemonInterface
// map postopts to comment audience if applicable.
$audience = 0;
$postopts = explode(',', $target_item['postopts']);
if (in_array($postopts, 'sender')) {
if (in_array('sender', $postopts)) {
$audience += AUDIENCE_SENDER;
}
if (in_array($postopts, 'conversation')) {
if (in_array('conversation', $postopts)) {
$audience += AUDIENCE_CONVERSATION;
}
if (in_arrray($postopts, 'followers')) {
if (in_arrray('followers', $postopts)) {
$audience += AUDIENCE_FOLLOWERS;
}
$isContained = str_contains($parent_item['tgt_type'], 'Collection') || ($parent_item['item_restrict'] & 4);