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
1 changed files with 1 additions and 1 deletions

View File

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