mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 11:14:28 +00:00
Fix formatting
This commit is contained in:
parent
8fafad4e37
commit
ffd06f946b
1 changed files with 2 additions and 4 deletions
6
app.py
6
app.py
|
@ -243,8 +243,7 @@ def _get_file_url(url, size, kind):
|
||||||
@app.template_filter()
|
@app.template_filter()
|
||||||
def emojify(text):
|
def emojify(text):
|
||||||
return emoji_unicode.replace(
|
return emoji_unicode.replace(
|
||||||
text,
|
text, lambda e: EMOJI.format(filename=e.code_points, raw=e.unicode)
|
||||||
lambda e: EMOJI.format(filename=e.code_points, raw=e.unicode),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -315,8 +314,7 @@ def is_from_outbox(t):
|
||||||
def clean(html):
|
def clean(html):
|
||||||
out = clean_html(html)
|
out = clean_html(html)
|
||||||
return emoji_unicode.replace(
|
return emoji_unicode.replace(
|
||||||
out,
|
out, lambda e: EMOJI.format(filename=e.code_points, raw=e.unicode)
|
||||||
lambda e: EMOJI.format(filename=e.code_points, raw=e.unicode),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue