aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2014-01-09 17:29:04 +0100
committerzottel <github@zottel.net>2014-01-09 17:29:04 +0100
commitacdf053a0bec73acaad3f6c0e0625aa860a4b9b3 (patch)
treeda4646411f6946e7cfecd86cc821a22d07281bb9 /include/items.php
parent5ee5bda998b47e82586c47de1d325508b57cefe5 (diff)
downloadvolse-hubzilla-acdf053a0bec73acaad3f6c0e0625aa860a4b9b3.tar.gz
volse-hubzilla-acdf053a0bec73acaad3f6c0e0625aa860a4b9b3.tar.bz2
volse-hubzilla-acdf053a0bec73acaad3f6c0e0625aa860a4b9b3.zip
use display/ plinks for comments
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php
index 883458b6e..d5eea1e6f 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1602,12 +1602,11 @@ function item_store($arr,$allow_exec = false) {
$arr['llink'] = z_root() . '/display/' . $arr['mid'];
- if(! $arr['plink']) {
- if (local_user()){
+ if((! $arr['plink'])) {
+ if (local_user() && ($arr['item_flags'] & ITEM_THREAD_TOP)) {
$channel = get_app()->get_channel();
$arr['plink'] = z_root() . '/channel/' . $channel['channel_address'] . '/?mid=' . $arr['mid'];
} else {
- // can this ever happen?
$arr['plink'] = $arr['llink'];
}
}