diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-10-19 11:20:09 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-10-19 11:20:09 +0200 |
commit | f3c374b6fff5122ad8a8a62446a65171ce0fb555 (patch) | |
tree | e15f8cd2bfce528c421a152add3a236a12ad25f7 /include/conversation.php | |
parent | 21b2c0afa393ed0a3a363c5a0737727a53bc99b8 (diff) | |
download | volse-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/conversation.php')
-rw-r--r-- | include/conversation.php | 4 |
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( |