Change to never link out to Twitter for photos that are inlined.

This commit is contained in:
Maurice Parker 2020-04-22 22:13:55 -05:00
parent 62ca536717
commit 62e91cfd26
1 changed files with 1 additions and 7 deletions

View File

@ -35,13 +35,7 @@ struct TwitterExtendedMedia: Codable {
switch type {
case "photo":
if let url = url {
html += "<a href=\"\(url)\">"
html += renderPhotoAsHTML()
html += "</a>"
} else {
html += renderPhotoAsHTML()
}
html += renderPhotoAsHTML()
case "video", "animated_gif":
html += renderVideoAsHTML()
default: