aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-01 11:16:03 +0000
committerMario <mario@mariovavti.com>2020-10-01 11:16:03 +0000
commit96c4c72ee36ebb19252be724ddb485a05337cb23 (patch)
tree1d7cb8dd8337b7361f0b3386c55788ede195051f /Zotlabs
parent4b0d32eb147c8993ba7ff15ddc1276f752971d2a (diff)
downloadvolse-hubzilla-96c4c72ee36ebb19252be724ddb485a05337cb23.tar.gz
volse-hubzilla-96c4c72ee36ebb19252be724ddb485a05337cb23.tar.bz2
volse-hubzilla-96c4c72ee36ebb19252be724ddb485a05337cb23.zip
minor issue
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php8
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);