fix: fix post type error

This commit is contained in:
H3CoF6
2026-02-13 23:42:06 +08:00
parent 7bf57a1475
commit 0a2d98b406
2 changed files with 10 additions and 9 deletions

View File

@@ -570,14 +570,13 @@ 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 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)
// if (pick) parts.set('pick', pick)
// if (!pick && snsAvoidOtherPicked.value) {
// parts.set('avoid_picked', '1')
// parts.set('pv', String(snsMediaOverrideRev.value || '0'))
// }
if (md5) parts.set('md5', md5)
// Bump this when changing backend matching logic to avoid stale cached wrong images.
parts.set('v', '7')