From 02ca0516ab35f2bcff1a5552ee173d88a14171b2 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 22 Apr 2026 13:13:53 +0300 Subject: [PATCH] remove jpeg format forcing from avatar download Co-Authored-By: Claude Opus 4.6 (1M context) --- modules/BlueskyNSE/NotificationService.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/BlueskyNSE/NotificationService.swift b/modules/BlueskyNSE/NotificationService.swift index 106372fa89..5c87c8aaaf 100644 --- a/modules/BlueskyNSE/NotificationService.swift +++ b/modules/BlueskyNSE/NotificationService.swift @@ -109,19 +109,11 @@ class NotificationService: UNNotificationServiceExtension { } func downloadAvatarImage(from urlString: String) -> INImage? { - var thumbnailUrlString = urlString.replacingOccurrences( + let thumbnailUrlString = urlString.replacingOccurrences( of: "/img/avatar/", with: "/img/avatar_thumbnail/" ) - // CDN URLs may end with @webp or no extension (which defaults to webp). - // INImage doesn't reliably handle WebP, so force JPEG. - if let atRange = thumbnailUrlString.range(of: "@", options: .backwards) { - thumbnailUrlString = String(thumbnailUrlString[..