Archived
1
0
Fork 0

Updated Masto bot to include language data

This commit is contained in:
Alexander Yakovlev 2018-06-09 12:14:48 +07:00
parent 65856d4a2b
commit 31a63ebd4c

View file

@ -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());
}