mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
Merge pull request #5511 from senky/ticket/15940
[ticket/15940] Expose user_id to notif method's is_available()
This commit is contained in:
commit
b6c230753e
2 changed files with 2 additions and 8 deletions
|
@ -78,10 +78,7 @@ class approve_post extends \phpbb\notification\type\post
|
||||||
'ignore_users' => array(),
|
'ignore_users' => array(),
|
||||||
), $options);
|
), $options);
|
||||||
|
|
||||||
$users = array();
|
return $this->get_authorised_recipients(array($post['poster_id']), $post['forum_id'], array_merge($options, array(
|
||||||
$users[$post['poster_id']] = $this->notification_manager->get_default_methods();
|
|
||||||
|
|
||||||
return $this->get_authorised_recipients(array_keys($users), $post['forum_id'], array_merge($options, array(
|
|
||||||
'item_type' => static::$notification_option['id'],
|
'item_type' => static::$notification_option['id'],
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,10 +78,7 @@ class approve_topic extends \phpbb\notification\type\topic
|
||||||
'ignore_users' => array(),
|
'ignore_users' => array(),
|
||||||
), $options);
|
), $options);
|
||||||
|
|
||||||
$users = array();
|
return $this->get_authorised_recipients(array($post['poster_id']), $post['forum_id'], array_merge($options, array(
|
||||||
$users[$post['poster_id']] = $this->notification_manager->get_default_methods();
|
|
||||||
|
|
||||||
return $this->get_authorised_recipients(array_keys($users), $post['forum_id'], array_merge($options, array(
|
|
||||||
'item_type' => static::$notification_option['id'],
|
'item_type' => static::$notification_option['id'],
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue