From 39933052a9eb827afee3965509909ba314de5257 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 23 Jul 2024 14:40:36 +0000 Subject: do not run set_linkified_perms() if editing an existing post --- Zotlabs/Module/Item.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 233e0b05a..5618137a1 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -837,8 +837,10 @@ class Item extends Controller { if ($results) { - // Set permissions based on tag replacements - set_linkified_perms($results, $str_contact_allow, $str_group_allow, $profile_uid, $private, $parent_item); + // Set permissions based on tag replacements only if not editing an existing post + if (!$orig_post) { + set_linkified_perms($results, $str_contact_allow, $str_group_allow, $profile_uid, $private, $parent_item); + } foreach ($results as $result) { $success = $result['success']; -- cgit v1.2.3