mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 19:04:23 +00:00
fix(webui): use poster field instead of thumbnail for video notifications
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user