aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-06 21:32:06 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-06 21:32:06 +0200
commit9bd30eb8bf0299e62a975f4f8ba0a868e5789417 (patch)
treed4c4187a5261e30608fa0d64bd5a16e40d82f9e1 /Zotlabs/Lib
parentb883b9c983773f51965680af813dd7e930823460 (diff)
downloadvolse-hubzilla-9bd30eb8bf0299e62a975f4f8ba0a868e5789417.tar.gz
volse-hubzilla-9bd30eb8bf0299e62a975f4f8ba0a868e5789417.tar.bz2
volse-hubzilla-9bd30eb8bf0299e62a975f4f8ba0a868e5789417.zip
to find out if a comment is to be moderated we need to look at the actual comment not at its parent
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Enotify.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 9f3347d19..6513bcda7 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -97,6 +97,7 @@ class Enotify {
$title = $i['title'];
$body = $i['body'];
$private = (($i['item_private']) || intval($i['item_obscured']));
+ $moderated = (($i['item_blocked'] == ITEM_MODERATED) ? true : false);
}
else {
$title = $params['item']['title'];
@@ -170,8 +171,6 @@ class Enotify {
xchan_query($p);
- $moderated = (($p[0]['item_blocked'] == ITEM_MODERATED) ? true : false);
-
$item_post_type = item_post_type($p[0]);
// $private = $p[0]['item_private'];
$parent_id = $p[0]['id'];