From 31a63ebd4cdf3e347a491772f8e8568389a3fd62 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Sat, 9 Jun 2018 12:14:48 +0700 Subject: [PATCH] Updated Masto bot to include language data --- bot.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.php b/bot.php index ab7f678..83fa178 100755 --- a/bot.php +++ b/bot.php @@ -121,7 +121,9 @@ function check($classname, $command) { $mdescription .= $attachment->url; } */ - $mastodon->status_post($description); + $mastodon->createStatus($description, [ + 'language' => 'en' + ]); if (!$config['DRY_RUN']) { file_put_contents('.lastrun', time()); }