From ef65e3451fef5a8658baecd515a18fb7078d5857 Mon Sep 17 00:00:00 2001 From: simonpipe Date: Wed, 7 Jan 2026 09:52:57 +0100 Subject: [PATCH] Update mastodonapi.php --- mastodonapi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodonapi.php b/mastodonapi.php index be2da58..6b4b371 100644 --- a/mastodonapi.php +++ b/mastodonapi.php @@ -3,7 +3,7 @@ // MastodonAPI extension, https://codeberg.org/simonpipe/yellow-mastodonapi class YellowMastodonapi { - const VERSION = "0.3.1"; + const VERSION = "0.3.2"; public $yellow; public function onLoad($yellow) { @@ -61,7 +61,7 @@ class YellowMastodonapi { } public function onTick() { - $interval = intval($this->yellow->system->get("mastodonapiUpdateInterval")) 60; + $interval = intval($this->yellow->system->get("mastodonapiUpdateInterval")) * 60; $statusFile = $this->getStatusFile(); $lastUpdate = file_exists($statusFile) ? intval(file_get_contents($statusFile)) : 0;