diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ceef4fd..db8981a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,16 @@ ## 2024 +### 09-08 v3.18.1 + +- 修复B站仅推送视频时没有推送 [#472](../../issues/472) [#473](../../issues/472) + ### 09-07 v3.18.0 - 可配置@后加空格,用于不会自动补空格的客户端 - 修复部分情况下使用 NapCat 无法发送图片的问题 - B站动态解析支持自定义链接位置和图片数量 [#470](../../issues/470) -- B站仅推送视频时没有推送 [#472](../../issues/472) +- 修复B站仅推送视频时没有推送 [#472](../../issues/472) - 配置项变更 - A `bot.spaceAfterAt` - A `bot.bilibili.dynamicLinkPosition` diff --git a/src/plugin/bilibili/push.mjs b/src/plugin/bilibili/push.mjs index d19ff863..68c5f87d 100644 --- a/src/plugin/bilibili/push.mjs +++ b/src/plugin/bilibili/push.mjs @@ -254,7 +254,7 @@ async function handleFeedDynamic(items) { for await (const { id, type, isForwardingSelf, text } of dynamics) { if ((pushIgnoreForwardingSelf && isForwardingSelf) || /详情请点击(互动)?抽奖查看/.test(text)) continue; for (const { gid, atAll, onlyVideo } of confs) { - if (onlyVideo && (type !== 'MAJOR_TYPE_ARCHIVE' || type !== 'DYNAMIC_TYPE_AV')) continue; + if (onlyVideo && type !== 'DYNAMIC_TYPE_AV') continue; tasks.push(() => { if (global.config.bot.debug) console.log(`[BilibiliPush] push dynamic ${id} to group ${gid}`); return global.sendGroupMsg(gid, atAll ? `${text}\n\n${CQ.atAll()}` : text).catch(e => {