From de84456a5759dad9d2dc346238d6a68aabfff033 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 25 Jun 2023 06:24:36 +0200 Subject: [PATCH] mediaurl: fix is_img returning true for videos This makes the image preloader try to download videos... not good. --- damus/Views/NoteContentView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift index 5ca6942d..f1716c99 100644 --- a/damus/Views/NoteContentView.swift +++ b/damus/Views/NoteContentView.swift @@ -425,7 +425,7 @@ enum UrlType { case .image(let url): return url case .video: - return url + return nil } case .link: return nil