aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-19 11:20:09 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-19 11:20:09 +0200
commitf3c374b6fff5122ad8a8a62446a65171ce0fb555 (patch)
treee15f8cd2bfce528c421a152add3a236a12ad25f7 /Zotlabs/Module/Display.php
parent21b2c0afa393ed0a3a363c5a0737727a53bc99b8 (diff)
downloadvolse-hubzilla-f3c374b6fff5122ad8a8a62446a65171ce0fb555.tar.gz
volse-hubzilla-f3c374b6fff5122ad8a8a62446a65171ce0fb555.tar.bz2
volse-hubzilla-f3c374b6fff5122ad8a8a62446a65171ce0fb555.zip
redirect to be moderated items to /moderate and change the conv link to partent mid in /modrate
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 0ea55102e..d5afdd787 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -89,13 +89,18 @@ class Display extends \Zotlabs\Web\Controller {
if($decoded)
$item_hash = $decoded;
- $r = q("select id, uid, mid, parent_mid, thr_parent, verb, item_type, item_deleted from item where mid like '%s' limit 1",
+ $r = q("select id, uid, mid, parent_mid, thr_parent, verb, item_type, item_deleted, item_blocked from item where mid like '%s' limit 1",
dbesc($item_hash . '%')
);
if($r) {
$target_item = $r[0];
}
+
+ //if the item is to be moderated redirect to /moderate
+ if($target_item['item_blocked'] == ITEM_MODERATED) {
+ goaway(z_root() . '/moderate/' . $target_item['id']);
+ }
$r = null;