Update mastodonapi.php

This commit is contained in:
simonpipe 2026-01-07 09:52:57 +01:00
parent 950864df64
commit ef65e3451f

View file

@ -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;