Better toot formatting with html
This commit is contained in:
parent
d85955c2f3
commit
aa8bb06cb2
1 changed files with 2 additions and 3 deletions
|
@ -39,6 +39,5 @@ with open('marxistquotes.csv') as csvfile:
|
||||||
csvreader = csv.reader(csvfile, delimiter=',', quotechar='`', skipinitialspace=True)
|
csvreader = csv.reader(csvfile, delimiter=',', quotechar='`', skipinitialspace=True)
|
||||||
row = random.choice(list(csvreader))
|
row = random.choice(list(csvreader))
|
||||||
|
|
||||||
# TODO: post as markdown or html with link to source
|
text = '<p>{}</p> - {}<a href={}>{}</a>'.format(row[0], row[1], row[2], row[3])
|
||||||
text = '{}\n\n - {}'.format(row[0], row[1])
|
toot = mastodon_api.status_post(text, visibility='private', content_type='text/html')
|
||||||
toot = mastodon_api.status_post(text, visibility='private')
|
|
||||||
|
|
Loading…
Reference in a new issue