From 8beccdfe5493ea518bdc0acebce6cd28005ca1a5 Mon Sep 17 00:00:00 2001 From: Hampus Date: Thu, 15 Oct 2026 21:22:24 +0200 Subject: [PATCH] fix(app): request webp forum card thumbnails for video posts (#3497) --- fluxer_app/src/features/forum/components/ForumPostCard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluxer_app/src/features/forum/components/ForumPostCard.tsx b/fluxer_app/src/features/forum/components/ForumPostCard.tsx index f683f931a..f9fe611cb 100644 --- a/fluxer_app/src/features/forum/components/ForumPostCard.tsx +++ b/fluxer_app/src/features/forum/components/ForumPostCard.tsx @@ -13,7 +13,7 @@ import {isPinnedPost} from '@app/features/forum/utils/ForumPostList'; import {MESSAGE_COUNT_DESCRIPTOR as D_POST_COUNT_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors'; import * as ReactionCommands from '@app/features/messaging/commands/ReactionCommands'; import {Message} from '@app/features/messaging/models/MessagingMessage'; -import {buildFitInsideMediaProxyURL} from '@app/features/messaging/utils/MediaProxyUtils'; +import {buildFitInsideMediaProxyURL, resolvePreferredImageFormat} from '@app/features/messaging/utils/MediaProxyUtils'; import Navigation from '@app/features/navigation/state/Navigation'; import {buildMessageNotificationBody} from '@app/features/notification/utils/MessageNotificationPreview'; import Permission from '@app/features/permissions/state/Permission'; @@ -154,6 +154,7 @@ export const ForumPostCard = observer(({forum, post, grid}: ForumPostCardProps) ); const thumbnail = media ? buildFitInsideMediaProxyURL(media.src, { + format: resolvePreferredImageFormat(), width: grid ? GRID_THUMBNAIL_SIZE : LIST_THUMBNAIL_SIZE, height: grid ? GRID_THUMBNAIL_SIZE : LIST_THUMBNAIL_SIZE, })