Exclude imgur from embedded media object output

This commit is contained in:
Maurice Parker 2020-05-06 13:40:13 -05:00
parent 9e235564af
commit 366d24711a

View File

@ -98,7 +98,7 @@ struct RedditLinkData: Codable {
return html return html
} }
if let mediaEmbedContent = mediaEmbed?.content { if !url.hasPrefix("https://imgur.com"), let mediaEmbedContent = mediaEmbed?.content {
return mediaEmbedContent return mediaEmbedContent
} }