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[..