aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-23 20:36:00 +0000
committerMario <mario@mariovavti.com>2021-05-23 20:36:00 +0000
commitea215697edabd4788d497d2f22000b06cfe26fdd (patch)
tree9e3a917c4248adb2edcdddfc1c247a845e6eb9a8 /Zotlabs
parentd40686e5d00b816bfa01282c69e8d34ddc9d3616 (diff)
downloadvolse-hubzilla-ea215697edabd4788d497d2f22000b06cfe26fdd.tar.gz
volse-hubzilla-ea215697edabd4788d497d2f22000b06cfe26fdd.tar.bz2
volse-hubzilla-ea215697edabd4788d497d2f22000b06cfe26fdd.zip
remove location command from notifier
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Notifier.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 3b84896d8..a163fb5bd 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -165,32 +165,6 @@ class Notifier {
$private = false;
$packet_type = 'refresh';
}
- elseif ($cmd === 'location') {
- logger('notifier: location: ' . $item_id);
- $s = q("select * from channel where channel_id = %d limit 1",
- intval($item_id)
- );
- if ($s)
- $channel = $s[0];
-
- $uid = $item_id;
- $recipients = [];
-
- $r = q("select abook_xchan from abook where abook_channel = %d",
- intval($uid)
- );
- if ($r) {
- foreach ($r as $rr) {
- $recipients[] = $rr['abook_xchan'];
- }
- }
-
- $encoded_item = ['locations' => Libzot::encode_locations($channel), 'type' => 'location', 'encoding' => 'zot'];
- $target_item = ['aid' => $channel['channel_account_id'], 'uid' => $channel['channel_id']];
- $private = false;
- $packet_type = 'location';
- $location = true;
- }
elseif ($cmd === 'purge') {
$xchan = $argv[3];
logger('notifier: purge: ' . $item_id . ' => ' . $xchan);
@@ -472,7 +446,6 @@ class Notifier {
'uplink' => $uplink,
'cmd' => $cmd,
'single' => (($cmd === 'single_activity') ? true : false),
- 'location' => $location,
'normal_mode' => $normal_mode,
'packet_type' => $packet_type,
'walltowall' => $walltowall,
@@ -615,7 +588,6 @@ class Notifier {
'uplink' => $uplink,
'cmd' => $cmd,
'single' => (($cmd === 'single_activity') ? true : false),
- 'location' => $location,
'normal_mode' => $normal_mode,
'packet_type' => $packet_type,
'walltowall' => $walltowall,