Fixes damus-io/damus#246
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user