Unescape HTML, closes jarvis#159

This commit is contained in:
Zeva Rose 2022-08-29 01:23:42 +00:00
parent efafe1ed5a
commit 7b9379b5c5

View file

@ -2,6 +2,7 @@
import logging
from asyncio import sleep
from datetime import datetime, timedelta, timezone
from html import unescape
from typing import List
import tweepy.asynchronous
@ -50,6 +51,8 @@ def tweet_embeds(tweet: Status) -> List[Embed]:
if item["type"] in ["photo", "animated_gif"]:
photos.append(item["media_url_https"])
text = unescape(text)
base_embed = build_embed(
title="",
description=(text + f"\n\n[View this tweet]({url})"),