fix: use two type to find path correctly

This commit is contained in:
H3CoF6
2026-02-13 23:56:42 +08:00
parent 0a2d98b406
commit bcf918e7e8
2 changed files with 30 additions and 11 deletions

View File

@@ -570,12 +570,12 @@ const getSnsMediaUrl = (post, m, idx, rawUrl) => {
const mid = String(m?.id || '').trim()
if (mid) parts.set('media_id', mid)
// const mtype = String(m?.type || '').trim()
// if (mtype) parts.set('media_type', mtype)
const postType = String(post?.type || '1').trim()
if (postType) parts.set('post_type', postType)
const mediaType = String(m?.type || '2').trim()
if (mediaType) parts.set('media_type', mediaType)
if (md5) parts.set('md5', md5)
// Bump this when changing backend matching logic to avoid stale cached wrong images.