diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift index e1038077..81b12467 100644 --- a/damus/Views/NoteContentView.swift +++ b/damus/Views/NoteContentView.swift @@ -54,7 +54,7 @@ func render_note_content(ev: NostrEvent, profiles: Profiles, privkey: String?) - func is_image_url(_ url: URL) -> Bool { let str = url.lastPathComponent - return str.hasSuffix("png") || str.hasSuffix("jpg") || str.hasSuffix("jpeg") || str.hasSuffix("gif") + return str.lowercased().hasSuffix("png") || str.lowercased().hasSuffix("jpg") || str.lowercased().hasSuffix("jpeg") || str.lowercased().hasSuffix("gif") } struct NoteContentView: View {