mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:15:51 +00:00
Merge branch 'dev' into deliver
This commit is contained in:
commit
2f58ca3dbe
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue