aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/conversation.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index c034e8a65..f395b2cbe 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -703,7 +703,9 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0)
$is_new = true;
- $conv_link = (($item['item_type'] == ITEM_TYPE_CARD) ? $item['plink'] : z_root() . '/display/' . gen_link_id($item['mid']));
+ $conv_link_mid = (($mode == 'moderate') ? $item['parent_mid'] : $item['mid']);
+
+ $conv_link = (($item['item_type'] == ITEM_TYPE_CARD) ? $item['plink'] : z_root() . '/display/' . gen_link_id($conv_link_mid));
$tmp_item = array(