Bugfixes and more tests

This commit is contained in:
Dylan
2024-05-02 19:15:14 +01:00
parent 06b932437a
commit 0858f6263b
7 changed files with 114 additions and 15 deletions

View File

@ -30,9 +30,8 @@ def formatEmbedDesc(type,body,qrt,pollDisplay,likesDisplay):
# Trim the embed description to 248 characters, prioritizing poll and likes
qrtType=None
#if qrt!=None:
# qrtType=qrt["type"]
qrtType="Text"
if qrt!=None:
qrtType="Text"
limit = videoDescLimit if type=="Text" or type=="Video" or (qrt!=None and (qrtType=="Text" or qrtType=="Video")) else tweetDescLimit