aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ping.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-06-28 13:09:44 +0200
committerMario Vavti <mario@mariovavti.com>2019-06-28 13:09:44 +0200
commit42526fc2dc3a25ab3bb3741bb55733370f630f49 (patch)
tree3b185fe7b01d8c689c806f375cee8c81fbb4b9d6 /Zotlabs/Module/Ping.php
parent9c76afa2a34d555b9ce132fe35c1c8010d703b07 (diff)
downloadvolse-hubzilla-42526fc2dc3a25ab3bb3741bb55733370f630f49.tar.gz
volse-hubzilla-42526fc2dc3a25ab3bb3741bb55733370f630f49.tar.bz2
volse-hubzilla-42526fc2dc3a25ab3bb3741bb55733370f630f49.zip
decode encoded mid
Diffstat (limited to 'Zotlabs/Module/Ping.php')
-rw-r--r--Zotlabs/Module/Ping.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php
index 3dabe0f7b..6e8042eaf 100644
--- a/Zotlabs/Module/Ping.php
+++ b/Zotlabs/Module/Ping.php
@@ -282,8 +282,8 @@ class Ping extends \Zotlabs\Web\Controller {
if(strpos($message, $tt['xname']) === 0)
$message = substr($message, strlen($tt['xname']) + 1);
-
$mid = basename($tt['link']);
+ $mid = ((strpos($mid, 'b64.') === 0) ? @base64url_decode(substr($mid, 4)) : $mid);
if(in_array($tt['verb'], [ACTIVITY_LIKE, ACTIVITY_DISLIKE])) {
// we need the thread parent
@@ -291,7 +291,6 @@ class Ping extends \Zotlabs\Web\Controller {
dbesc($mid),
intval(local_channel())
);
-
$b64mid = ((strpos($r[0]['thr_parent'], 'b64.') === 0) ? $r[0]['thr_parent'] : 'b64.' . base64url_encode($r[0]['thr_parent']));
}
else {