Updated Masto bot to include language data
This commit is contained in:
parent
65856d4a2b
commit
31a63ebd4c
4
bot.php
4
bot.php
|
@ -121,7 +121,9 @@ function check($classname, $command) {
|
||||||
$mdescription .= $attachment->url;
|
$mdescription .= $attachment->url;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
$mastodon->status_post($description);
|
$mastodon->createStatus($description, [
|
||||||
|
'language' => 'en'
|
||||||
|
]);
|
||||||
if (!$config['DRY_RUN']) {
|
if (!$config['DRY_RUN']) {
|
||||||
file_put_contents('.lastrun', time());
|
file_put_contents('.lastrun', time());
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue