mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix tag dedup
This commit is contained in:
parent
0144a1c0d4
commit
2853bf2a28
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ async def markdownify(
|
||||||
# Handle custom emoji
|
# Handle custom emoji
|
||||||
tags.extend(emoji.tags(content))
|
tags.extend(emoji.tags(content))
|
||||||
|
|
||||||
return rendered_content, tags, list(mentioned_actors.values())
|
return rendered_content, dedup_tags(tags), list(mentioned_actors.values())
|
||||||
|
|
||||||
|
|
||||||
def dedup_tags(tags: list[dict[str, str]]) -> list[dict[str, str]]:
|
def dedup_tags(tags: list[dict[str, str]]) -> list[dict[str, str]]:
|
||||||
|
|
Loading…
Reference in a new issue