Update mastodonapi.php
This commit is contained in:
parent
950864df64
commit
ef65e3451f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue