diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-06-28 13:09:44 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-06-28 13:09:44 +0200 |
commit | 42526fc2dc3a25ab3bb3741bb55733370f630f49 (patch) | |
tree | 3b185fe7b01d8c689c806f375cee8c81fbb4b9d6 /Zotlabs | |
parent | 9c76afa2a34d555b9ce132fe35c1c8010d703b07 (diff) | |
download | volse-hubzilla-42526fc2dc3a25ab3bb3741bb55733370f630f49.tar.gz volse-hubzilla-42526fc2dc3a25ab3bb3741bb55733370f630f49.tar.bz2 volse-hubzilla-42526fc2dc3a25ab3bb3741bb55733370f630f49.zip |
decode encoded mid
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Ping.php | 3 |
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 { |