Don't allow zooming on animated gifs because zooming doesn't support them

This commit is contained in:
Maurice Parker 2020-10-30 19:07:32 -05:00
parent f7d5cf4f58
commit 7361c71d2b

View File

@ -98,7 +98,7 @@ final class RedditLinkData: Codable {
guard let url = url else { return "" } guard let url = url else { return "" }
if url.hasSuffix(".gif") { if url.hasSuffix(".gif") {
return "<img src=\"\(url)\">" return "<img class=\"nnw-nozoom\" src=\"\(url)\">"
} }
if isVideo ?? false, let videoURL = media?.video?.hlsURL { if isVideo ?? false, let videoURL = media?.video?.hlsURL {