This commit is contained in:
Ben Weeks
2023-01-06 00:39:57 +00:00
parent b7c7b0b3bf
commit aba758b143

View File

@@ -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 {