From 13319985fda0a67e1fb67cf521f6a3ea3b0aebac Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 15 May 2020 19:28:03 +0200 Subject: uuid for likes --- Zotlabs/Lib/Activity.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Zotlabs/Lib/Activity.php') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 4b7ed30f3..014ff8949 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -708,6 +708,8 @@ class Activity { $ret['id'] = ((strpos($i['mid'],'http') === 0) ? $i['mid'] : z_root() . '/activity/' . urlencode($i['mid'])); } + $ret['diaspora:guid'] = $i['uuid']; + if($i['title']) $ret['name'] = html2plain(bbcode($i['title'], [ 'cache' => true ])); @@ -1984,6 +1986,7 @@ class Activity { $s['mid'] = $act->id; $s['parent_mid'] = $act->obj['id']; + $s['uuid'] = $act->{'diaspora:guid'}; // over-ride the object timestamp with the activity -- cgit v1.2.3