diff --git a/mastodonapi.php b/mastodonapi.php index f632eff..a9d0f0c 100644 --- a/mastodonapi.php +++ b/mastodonapi.php @@ -52,12 +52,13 @@ class YellowMastodonapi { $this->updateMastodonPosts(); } } - + // Update Mastodon posts public function updateMastodonPosts() { $postsCreated = $this->processMastodonFeed(); if ( $postsCreated!==false ) { - file_put_contents($this->getStatusFile(), time()); + $statusFile = $this->getStatusFile(); + file_put_contents($statusFile, time()); } return $postsCreated; }