aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
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 /include/items.php
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 'include/items.php')
-rw-r--r--include/items.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/include/items.php b/include/items.php
index f689cc7b5..8a0af5679 100644
--- a/include/items.php
+++ b/include/items.php
@@ -2607,7 +2607,6 @@ function tag_deliver($uid, $item_id) {
return;
}
-
if ($is_group && intval($item['item_thread_top']) && intval($item['item_wall']) && $item['author_xchan'] !== $item['owner_xchan']) {
if($item['resource_type'] === 'group_item') {
@@ -2625,39 +2624,6 @@ function tag_deliver($uid, $item_id) {
}
/*
- * Seems like a good place to plug in a poke notification.
- */
-
- if (stristr($item['verb'],ACTIVITY_POKE)) {
- $poke_notify = true;
-
- if(($item['obj_type'] == "") || (!in_array($item['obj_type'], ['Person', ACTIVITY_OBJ_PERSON])) || (! $item['obj']))
- $poke_notify = false;
-
- $obj = json_decode($item['obj'],true);
- if($obj) {
- if($obj['id'] !== $u[0]['channel_hash'])
- $poke_notify = false;
- }
- if(intval($item['item_deleted']))
- $poke_notify = false;
-
- $verb = urldecode(substr($item['verb'],strpos($item['verb'],'#')+1));
- if($poke_notify) {
- Enotify::submit(array(
- 'to_xchan' => $u[0]['channel_hash'],
- 'from_xchan' => $item['author_xchan'],
- 'type' => NOTIFY_POKE,
- 'item' => $item,
- 'link' => $i[0]['llink'],
- 'verb' => ACTIVITY_POKE,
- 'activity' => $verb,
- 'otype' => 'item'
- ));
- }
- }
-
- /*
* Do community tagging
*/