diff options
author | friendica <info@friendica.com> | 2014-01-09 14:11:05 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-09 14:11:05 -0800 |
commit | fe7aa9926bd378c667e2434a49131b6c90cb9d72 (patch) | |
tree | 1fcd83668739db949269b54d614ffcab4ff45d7c /include/items.php | |
parent | ca570f97e00bd3b6356e15266b0595c7379058b1 (diff) | |
parent | bf31ec04cfceebc2657a8a573580cff036db5bef (diff) | |
download | volse-hubzilla-fe7aa9926bd378c667e2434a49131b6c90cb9d72.tar.gz volse-hubzilla-fe7aa9926bd378c667e2434a49131b6c90cb9d72.tar.bz2 volse-hubzilla-fe7aa9926bd378c667e2434a49131b6c90cb9d72.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 781956882..d5eea1e6f 100755 --- a/include/items.php +++ b/include/items.php @@ -1602,8 +1602,14 @@ function item_store($arr,$allow_exec = false) { $arr['llink'] = z_root() . '/display/' . $arr['mid']; - if(! $arr['plink']) - $arr['plink'] = $arr['llink']; + 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 { + $arr['plink'] = $arr['llink']; + } + } if($arr['parent_mid'] === $arr['mid']) { $parent_id = 0; |