feat: make status id a string
This commit is contained in:
parent
7836b78f64
commit
5c3dae2237
1 changed files with 1 additions and 0 deletions
1
utils.py
1
utils.py
|
@ -3,6 +3,7 @@ import re
|
||||||
|
|
||||||
def clean_status(status):
|
def clean_status(status):
|
||||||
clean = clean_dict(status, ['id', 'content', 'created_at', 'url', 'media_attachments', 'card', 'tags'])
|
clean = clean_dict(status, ['id', 'content', 'created_at', 'url', 'media_attachments', 'card', 'tags'])
|
||||||
|
clean['id'] = str(status['id'])
|
||||||
clean['account'] = clean_author(status['account'])
|
clean['account'] = clean_author(status['account'])
|
||||||
clean['content'] = markdown.markdown("<section markdown='block'>"+ clean['content'] +"</section>", extensions=['md_in_html'])
|
clean['content'] = markdown.markdown("<section markdown='block'>"+ clean['content'] +"</section>", extensions=['md_in_html'])
|
||||||
for emoji in status['emojis']:
|
for emoji in status['emojis']:
|
||||||
|
|
Loading…
Reference in a new issue