Remove tags if there is an image in the rss description

merge-requests/8/head
Bob Mottram 2020-10-11 11:05:06 +01:00
parent 82a89aa216
commit e13cec3bbc
1 changed files with 3 additions and 2 deletions

View File

@ -133,8 +133,9 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
translate['Read more...'] + '</a>'
# remove image dimensions
rssDescription = removeHtmlTag(rssDescription, 'width')
rssDescription = removeHtmlTag(rssDescription, 'height')
if '<img' in rssDescription:
rssDescription = removeHtmlTag(rssDescription, 'width')
rssDescription = removeHtmlTag(rssDescription, 'height')
followersOnly = False
useBlurhash = False