From 0de22660b099b7cc5cf3264f44ab9d685bee38a3 Mon Sep 17 00:00:00 2001 From: simonpipe Date: Wed, 7 Jan 2026 22:28:46 +0100 Subject: [PATCH] Update mastodonapi.php --- mastodonapi.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }