aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2020-09-30 17:05:36 -0700
committernobody <nobody@zotlabs.com>2020-09-30 17:05:36 -0700
commite529635952c9a10f56d3bc90a666eccd9c5b9842 (patch)
tree65f18d905f5fcd1c2d4174836567c4f534053c67 /Zotlabs/Lib/Libzot.php
parentb878b6902817c7f442281cef30d346bd2a60659f (diff)
downloadvolse-hubzilla-e529635952c9a10f56d3bc90a666eccd9c5b9842.tar.gz
volse-hubzilla-e529635952c9a10f56d3bc90a666eccd9c5b9842.tar.bz2
volse-hubzilla-e529635952c9a10f56d3bc90a666eccd9c5b9842.zip
delete fixes
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index a6db9e431..9b4b05878 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -2116,6 +2116,11 @@ class Libzot {
$item_found = false;
$post_id = 0;
+ $m = parse_url($item['mid']);
+ unset($m['fragment']);
+ $normalised = unparse_url($m);
+
+
// reactions such as like and dislike could have an mid with /activity/ in it.
// Check for both forms in order to prevent duplicates.
@@ -2124,8 +2129,8 @@ class Libzot {
dbesc($sender),
dbesc($sender),
dbesc($sender),
- dbesc($item['mid']),
- dbesc(str_replace('/activity/', '/item/', $item['mid'])),
+ dbesc($normalised),
+ dbesc(str_replace('/activity/', '/item/', $normalised)),
intval($uid)
);