fix(webui): use poster field instead of thumbnail for video notifications

This commit is contained in:
yiling
2026-06-19 13:34:14 +08:00
parent 5e92660d1c
commit 1835016a9b
2 changed files with 68 additions and 2 deletions
@@ -382,8 +382,8 @@ export class NotificationService {
try {
if (media.sprite) {
previewUrl = await s3Service.presign(bucket, media.sprite.key, 'GET')
if (media.thumbnail) {
thumbnailUrl = await s3Service.presign(bucket, media.thumbnail.key || '', 'GET')
if (media.poster) {
thumbnailUrl = await s3Service.presign(bucket, media.poster.key || '', 'GET')
}
if (media.metadata) {
originalWidth = media.metadata.originalWidth