damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit add1e6104e5454c43f327334e9e8e47ddcc36d68
parent 5c557bc87d5775823f122f965daf9a4479ea39ed
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  3 May 2023 17:27:19 -0700

Add webp image support

Kingfisher already supports this... wtf we doing

Changelog-Added: Add webp image support

Diffstat:
Mdamus/Views/NoteContentView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift @@ -380,7 +380,7 @@ func render_blocks(blocks: [Block], profiles: Profiles, privkey: String?) -> Not func is_image_url(_ url: URL) -> Bool { let str = url.lastPathComponent.lowercased() - let isUrl = str.hasSuffix(".png") || str.hasSuffix(".jpg") || str.hasSuffix(".jpeg") || str.hasSuffix(".gif") + let isUrl = str.hasSuffix(".png") || str.hasSuffix(".jpg") || str.hasSuffix(".jpeg") || str.hasSuffix(".gif") || str.hasSuffix(".webp") return isUrl }