aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Onepoll.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-26 12:18:59 +0000
committerMario <mario@mariovavti.com>2021-05-26 12:18:59 +0000
commit1fa4bc9ac024983d4748262f98c6ddf323ad327c (patch)
tree807e3253255a8a24ded4ff81dd9313b37fb6e4cb /Zotlabs/Daemon/Onepoll.php
parentb742910107720797b05ec69ae626b420699e0630 (diff)
downloadvolse-hubzilla-1fa4bc9ac024983d4748262f98c6ddf323ad327c.tar.gz
volse-hubzilla-1fa4bc9ac024983d4748262f98c6ddf323ad327c.tar.bz2
volse-hubzilla-1fa4bc9ac024983d4748262f98c6ddf323ad327c.zip
remove most legacy zot quirks
Diffstat (limited to 'Zotlabs/Daemon/Onepoll.php')
-rw-r--r--Zotlabs/Daemon/Onepoll.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/Zotlabs/Daemon/Onepoll.php b/Zotlabs/Daemon/Onepoll.php
index d747e65f3..0fd695e17 100644
--- a/Zotlabs/Daemon/Onepoll.php
+++ b/Zotlabs/Daemon/Onepoll.php
@@ -75,16 +75,12 @@ class Onepoll {
return;
}
- if (!in_array($contact['xchan_network'], ['zot', 'zot6']))
+ if ($contact['xchan_network'] !== 'zot6'))
return;
// update permissions
- if ($contact['xchan_network'] === 'zot6')
- $x = Libzot::refresh($contact, $importer);
-
- if ($contact['xchan_network'] === 'zot')
- $x = zot_refresh($contact, $importer);
+ $x = Libzot::refresh($contact, $importer);
$responded = false;
$updated = datetime_convert();
@@ -125,7 +121,7 @@ class Onepoll {
if (!$can_send_stream)
$fetch_feed = false;
- if ($fetch_feed && $contact['xchan_network'] !== 'zot') {
+ if ($fetch_feed) {
$max = intval(get_config('system', 'max_imported_posts', 30));