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;