diff options
author | Mario <mario@mariovavti.com> | 2025-04-05 15:55:58 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-04-05 15:55:58 +0000 |
commit | a5a2d80c5094e0f42a98faa7a97bba0de757ec0f (patch) | |
tree | 00a7c7ed3b1cae95a287a9e749a7e38cfbe18cdf /Zotlabs | |
parent | 8da7fe8dbef0ae59786abf2842dd82f1150fe0fc (diff) | |
download | volse-hubzilla-a5a2d80c5094e0f42a98faa7a97bba0de757ec0f.tar.gz volse-hubzilla-a5a2d80c5094e0f42a98faa7a97bba0de757ec0f.tar.bz2 volse-hubzilla-a5a2d80c5094e0f42a98faa7a97bba0de757ec0f.zip |
fix some plink for forum posts and comments
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Item.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index cd024b083..ea561ee25 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -885,19 +885,13 @@ class Item extends Controller { if ($parent_item) $parent_mid = $parent_item['mid']; - // Fallback so that we always have a thr_parent if (!$thr_parent) $thr_parent = $mid; - $item_thread_top = ((!$parent) ? 1 : 0); - if ((!$plink) && ($item_thread_top)) { - $plink = $mid; - } - if (isset($datarray['obj']) && $datarray['obj']) { $datarray['obj']['id'] = $mid; } @@ -960,7 +954,7 @@ class Item extends Controller { $datarray['public_policy'] = $public_policy; $datarray['comment_policy'] = map_scope($comment_policy); $datarray['term'] = array_unique($post_tags, SORT_REGULAR); - $datarray['plink'] = $plink; + $datarray['plink'] = $plink ?? $mid; $datarray['route'] = $route; // A specific ACL over-rides public_policy completely |