mirror of
https://github.com/friendica/friendica
synced 2024-11-18 09:03:42 +00:00
Don't compute system.update_interval when it's -1 (disabled)
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1357768936
This commit is contained in:
parent
f9dcb7c6d4
commit
b1b0bfc280
1 changed files with 3 additions and 3 deletions
|
@ -59,9 +59,9 @@ class Display extends DisplayModule
|
||||||
$parentUriId = $item['parent-uri-id'];
|
$parentUriId = $item['parent-uri-id'];
|
||||||
|
|
||||||
if (empty($force)) {
|
if (empty($force)) {
|
||||||
$browserUpdate = $this->pConfig->get($profileUid, 'system', 'update_interval');
|
$browserUpdate = intval($this->pConfig->get($profileUid, 'system', 'update_interval') ?? 40000);
|
||||||
if (!empty($browserUpdate)) {
|
if ($browserUpdate >= 1000) {
|
||||||
$updateDate = date(DateTimeFormat::MYSQL, time() - (intval($browserUpdate) / 500));
|
$updateDate = date(DateTimeFormat::MYSQL, time() - ($browserUpdate * 2 / 1000));
|
||||||
if (!Post::exists([
|
if (!Post::exists([
|
||||||
"`parent-uri-id` = ? AND `uid` IN (?, ?) AND `received` > ?",
|
"`parent-uri-id` = ? AND `uid` IN (?, ?) AND `received` > ?",
|
||||||
$parentUriId, 0,
|
$parentUriId, 0,
|
||||||
|
|
Loading…
Reference in a new issue