Add support for content warnings on posts.
This commit is contained in:
parent
96fd7ed430
commit
35b5408072
3 changed files with 4 additions and 4 deletions
4
gen.py
4
gen.py
|
|
@ -30,9 +30,9 @@ if __name__ == '__main__':
|
|||
if toot['media'] != None:
|
||||
mediaID = client.media_post(toot['media'], description = toot['toot'])
|
||||
client.status_post(toot['toot'].replace("\n", " "),
|
||||
media_ids = [mediaID], visibility = "unlisted")
|
||||
media_ids = [mediaID], visibility = "unlisted", spoiler_text = cfg['cw'])
|
||||
else:
|
||||
client.status_post(toot['toot'], visibility = 'unlisted')
|
||||
client.status_post(toot['toot'], visibility = 'unlisted', spoiler_text = cfg['cw'])
|
||||
except Exception as err:
|
||||
toot = {
|
||||
"toot":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue