Change to never link out to Twitter for photos that are inlined.
This commit is contained in:
parent
62ca536717
commit
62e91cfd26
@ -35,13 +35,7 @@ struct TwitterExtendedMedia: Codable {
|
|||||||
|
|
||||||
switch type {
|
switch type {
|
||||||
case "photo":
|
case "photo":
|
||||||
if let url = url {
|
html += renderPhotoAsHTML()
|
||||||
html += "<a href=\"\(url)\">"
|
|
||||||
html += renderPhotoAsHTML()
|
|
||||||
html += "</a>"
|
|
||||||
} else {
|
|
||||||
html += renderPhotoAsHTML()
|
|
||||||
}
|
|
||||||
case "video", "animated_gif":
|
case "video", "animated_gif":
|
||||||
html += renderVideoAsHTML()
|
html += renderVideoAsHTML()
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user