Skip to content

Commit

Permalink
fix: 哔哩哔哩仅推送视频时没有推送
Browse files Browse the repository at this point in the history
fix #473
  • Loading branch information
Tsuk1ko committed Sep 8, 2024
1 parent 0bf2709 commit e0958bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/bilibili/push.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit e0958bb

Please sign in to comment.