diff options
author | Mario <mario@mariovavti.com> | 2024-02-28 09:18:31 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-02-28 09:18:31 +0000 |
commit | 37878bf0a35bcd0fc799892618a8b34ca0440c2c (patch) | |
tree | 5b5ea26150c86464a91db057e3b0a9e9cc7a701b /Zotlabs/Lib/Activity.php | |
parent | b4f079c4b51d4b4918b1901ee351bc40aeb343da (diff) | |
download | volse-hubzilla-37878bf0a35bcd0fc799892618a8b34ca0440c2c.tar.gz volse-hubzilla-37878bf0a35bcd0fc799892618a8b34ca0440c2c.tar.bz2 volse-hubzilla-37878bf0a35bcd0fc799892618a8b34ca0440c2c.zip |
do away with deprecated activity types
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 6b2c4d58a..15e292ec4 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -448,13 +448,7 @@ class Activity { $ret = []; - if ($i['verb'] === ACTIVITY_FRIEND) { - // Hubzilla 'make-friend' activity, no direct mapping from AS1 to AS2 - make it a note - $objtype = 'Note'; - } - else { - $objtype = self::activity_obj_mapper($i['obj_type']); - } + $objtype = self::activity_obj_mapper($i['obj_type']); if (intval($i['item_deleted'])) { $ret['type'] = 'Tombstone'; @@ -1227,15 +1221,9 @@ class Activity { return $acts[$verb]; } - if (strpos($verb, ACTIVITY_MOOD) !== false) - return 'Create'; - if (strpos($verb, ACTIVITY_FRIEND) !== false) return 'Create'; - if (strpos($verb, ACTIVITY_POKE) !== false) - return 'Activity'; - // We should return false, however this will trigger an uncaught execption and crash // the delivery system if encountered by the JSON-LDSignature library |