aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-23 14:40:36 +0000
committerMario <mario@mariovavti.com>2024-07-23 14:40:36 +0000
commit39933052a9eb827afee3965509909ba314de5257 (patch)
tree57b5a9443394627e515ce692b8bdcdb596117a11
parent719dbf091a3483bd7d30b8ad0782ff4d14c876bf (diff)
downloadvolse-hubzilla-39933052a9eb827afee3965509909ba314de5257.tar.gz
volse-hubzilla-39933052a9eb827afee3965509909ba314de5257.tar.bz2
volse-hubzilla-39933052a9eb827afee3965509909ba314de5257.zip
do not run set_linkified_perms() if editing an existing post
-rw-r--r--Zotlabs/Module/Item.php6
1 files changed, 4 insertions, 2 deletions
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'];