diff options
author | Mario <mario@mariovavti.com> | 2020-10-01 11:16:03 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-10-01 11:16:03 +0000 |
commit | 96c4c72ee36ebb19252be724ddb485a05337cb23 (patch) | |
tree | 1d7cb8dd8337b7361f0b3386c55788ede195051f | |
parent | 4b0d32eb147c8993ba7ff15ddc1276f752971d2a (diff) | |
download | volse-hubzilla-96c4c72ee36ebb19252be724ddb485a05337cb23.tar.gz volse-hubzilla-96c4c72ee36ebb19252be724ddb485a05337cb23.tar.bz2 volse-hubzilla-96c4c72ee36ebb19252be724ddb485a05337cb23.zip |
minor issue
-rw-r--r-- | Zotlabs/Lib/Activity.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 3f4875e93..6fac0c717 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -643,6 +643,8 @@ class Activity { $ret['obj'] = []; } + $ret['type'] = self::activity_mapper($i['verb']); + if (intval($i['item_deleted'])) { if (in_array($ret['type'], [ 'Like', 'Dislike', 'Accept', 'Reject', 'TentativeAccept', 'TentativeReject' ])) { $ret['type'] = 'Undo'; @@ -662,8 +664,6 @@ class Activity { return $ret; } - $ret['type'] = self::activity_mapper($i['verb']); - if($ret['type'] === 'emojiReaction') { // There may not be an object for these items for legacy reasons - it should be the conversation parent. $p = q("select * from item where mid = '%s' and uid = %d", @@ -1058,6 +1058,8 @@ class Activity { 'http://purl.org/zot/activity/attendno' => 'Reject', 'http://purl.org/zot/activity/attendmaybe' => 'TentativeAccept', 'Invite' => 'Invite', + 'Delete' => 'Delete', + 'Undo' => 'Undo' ]; call_hooks('activity_mapper',$acts); @@ -1105,6 +1107,8 @@ class Activity { 'http://purl.org/zot/activity/attendno' => 'Reject', 'http://purl.org/zot/activity/attendmaybe' => 'TentativeAccept', 'Invite' => 'Invite', + 'Delete' => 'Delete', + 'Undo' => 'Undo' ]; call_hooks('activity_decode_mapper',$acts); |