use display/ plinks for comments

This commit is contained in:
zottel 2014-01-09 17:29:04 +01:00
parent 5ee5bda998
commit acdf053a0b

View File

@ -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'];
}
}