From 152d889fa57dbcd85becd5541489bde72664c741 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 21 Dec 2023 08:22:35 +0200 Subject: [PATCH] fix variable name --- src/cli/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/bot.php b/src/cli/bot.php index 8c96950..22fa05b 100644 --- a/src/cli/bot.php +++ b/src/cli/bot.php @@ -145,7 +145,7 @@ foreach ($config->feed as $feed) // Get post k $k = 0; - if ($posts = $client->getPosts([$feed->target], 1)) + if ($posts = $twister->getPosts([$feed->target], 1)) { if (isset($posts[0]['userpost']['k'])) {