no need to move $modrated check up
This commit is contained in:
parent
9bd30eb8bf
commit
e7c8012794
@ -97,7 +97,6 @@ class Enotify {
|
|||||||
$title = $i['title'];
|
$title = $i['title'];
|
||||||
$body = $i['body'];
|
$body = $i['body'];
|
||||||
$private = (($i['item_private']) || intval($i['item_obscured']));
|
$private = (($i['item_private']) || intval($i['item_obscured']));
|
||||||
$moderated = (($i['item_blocked'] == ITEM_MODERATED) ? true : false);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$title = $params['item']['title'];
|
$title = $params['item']['title'];
|
||||||
@ -131,6 +130,8 @@ class Enotify {
|
|||||||
if ($params['type'] == NOTIFY_COMMENT) {
|
if ($params['type'] == NOTIFY_COMMENT) {
|
||||||
// logger("notification: params = " . print_r($params, true), LOGGER_DEBUG);
|
// logger("notification: params = " . print_r($params, true), LOGGER_DEBUG);
|
||||||
|
|
||||||
|
$moderated = (($params['item']['item_blocked'] == ITEM_MODERATED) ? true : false);
|
||||||
|
|
||||||
$itemlink = $params['link'];
|
$itemlink = $params['link'];
|
||||||
|
|
||||||
// ignore like/unlike activity on posts - they probably require a separate notification preference
|
// ignore like/unlike activity on posts - they probably require a separate notification preference
|
||||||
|
Reference in New Issue
Block a user