aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2020-09-30 00:40:46 +0000
committerMario <mario@mariovavti.com>2020-09-30 08:16:59 +0200
commit48440e368c07855285da35ea9d0875196919a70d (patch)
treefeed5fa59a8b6c9442bcd77483f0492704348a50 /Zotlabs/Lib/Activity.php
parenta7bf07b864ab74884f3f2bfabd57d9aa5ae1e49c (diff)
downloadvolse-hubzilla-48440e368c07855285da35ea9d0875196919a70d.tar.gz
volse-hubzilla-48440e368c07855285da35ea9d0875196919a70d.tar.bz2
volse-hubzilla-48440e368c07855285da35ea9d0875196919a70d.zip
bug: undoing a like on a comment can remove the comment
(cherry picked from commit b999456bf16a5d457a16fab1299289cfb54bfed4)
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 9c7b4e601..7de2ca7ec 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -652,24 +652,7 @@ class Activity {
else
return [];
- if ($i['obj']) {
- if (! is_array($i['obj'])) {
- $i['obj'] = json_decode($i['obj'],true);
- }
- $obj = self::encode_object($i['obj']);
- if ($obj)
- $ret['object'] = $obj;
- else
- return [];
- }
- else {
- $obj = self::encode_item($i);
- if ($obj)
- $ret['object'] = $obj;
- else
- return [];
- }
-
+ $ret['object'] = str_replace('/item/','/activity/',$i['mid']);
$ret['to'] = [ ACTIVITY_PUBLIC_INBOX ];
return $ret;