aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-28 09:18:31 +0000
committerMario <mario@mariovavti.com>2024-02-28 09:18:31 +0000
commit37878bf0a35bcd0fc799892618a8b34ca0440c2c (patch)
tree5b5ea26150c86464a91db057e3b0a9e9cc7a701b /Zotlabs/Lib
parentb4f079c4b51d4b4918b1901ee351bc40aeb343da (diff)
downloadvolse-hubzilla-37878bf0a35bcd0fc799892618a8b34ca0440c2c.tar.gz
volse-hubzilla-37878bf0a35bcd0fc799892618a8b34ca0440c2c.tar.bz2
volse-hubzilla-37878bf0a35bcd0fc799892618a8b34ca0440c2c.zip
do away with deprecated activity types
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php14
-rw-r--r--Zotlabs/Lib/Apps.php2
2 files changed, 1 insertions, 15 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
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 00e65479e..1c05d69b1 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -352,8 +352,6 @@ class Apps {
'Directory' => t('Directory'),
'Help' => t('Help'),
'Mail' => t('Mail'),
- 'Mood' => t('Mood'),
- 'Poke' => t('Poke'),
'Chat' => t('Chat'),
'Search' => t('Search'),
'Probe' => t('Probe'),