diff options
author | Mario <mario@mariovavti.com> | 2021-05-26 12:18:59 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-05-26 12:18:59 +0000 |
commit | 1fa4bc9ac024983d4748262f98c6ddf323ad327c (patch) | |
tree | 807e3253255a8a24ded4ff81dd9313b37fb6e4cb /Zotlabs/Daemon/Onepoll.php | |
parent | b742910107720797b05ec69ae626b420699e0630 (diff) | |
download | volse-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.php | 10 |
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)); |