1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 08:34:13 +02:00

fix(backend): ブロックしたインスタンスのInboxジョブが蓄積し続ける問題を修正 (#17336)

* fix(backend): ブロックしたインスタンスのInboxジョブが蓄積し続ける問題を修正

* refactor

* Upddate changelog

---------

Co-authored-by: lqvp <183242690+lqvp@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
かっこかり
2026-04-26 11:40:55 +09:00
committed by GitHub
parent 23715c649c
commit 0f5da63328
2 changed files with 13 additions and 11 deletions

View File

@@ -25,6 +25,8 @@
- Fix: robots.txtの内容を調整 - Fix: robots.txtの内容を調整
- Fix: 特定のユーザーに管理者権限を持つロールが複数ついている際に、取得できるユーザーIDが重複する問題を修正 - Fix: 特定のユーザーに管理者権限を持つロールが複数ついている際に、取得できるユーザーIDが重複する問題を修正
(Cherry-picked from https://github.com/lqvp/misskey-tempura/commit/17ed4108cec4b6bd2fd989db5a9091db91fa37a7) (Cherry-picked from https://github.com/lqvp/misskey-tempura/commit/17ed4108cec4b6bd2fd989db5a9091db91fa37a7)
- Fix: ブロックしたサーバーからのInboxジョブが蓄積し続ける問題を修正
(Cherry-picked from https://github.com/lqvp/misskey-tempura/commit/3f0f4bfe923f2b3a7837017b54841598f421c6ef)
- Fix: support activity with `actor` as an id string or embedded object in inbox processor and ActivityPub inbox service - Fix: support activity with `actor` as an id string or embedded object in inbox processor and ActivityPub inbox service
- Fix: コンフィグファイルに `meilisearch` の設定がある状態でほかの検索プロバイダを利用すると、UI上からリモートのートの検索ができない問題を修正 - Fix: コンフィグファイルに `meilisearch` の設定がある状態でほかの検索プロバイダを利用すると、UI上からリモートのートの検索ができない問題を修正

View File

@@ -243,17 +243,17 @@ export class InboxProcessorService implements OnApplicationShutdown {
} }
} catch (e) { } catch (e) {
if (e instanceof IdentifiableError) { if (e instanceof IdentifiableError) {
if (e.id === '689ee33f-f97c-479a-ac49-1b9f8140af99') { switch (e.id) {
return 'blocked notes with prohibited words'; case '689ee33f-f97c-479a-ac49-1b9f8140af99':
} return 'blocked notes with prohibited words';
if (e.id === '85ab9bd7-3a41-4530-959d-f07073900109') { case '85ab9bd7-3a41-4530-959d-f07073900109':
return 'actor has been suspended'; return 'actor has been suspended';
} case 'd450b8a9-48e4-4dab-ae36-f4db763fda7c': // invalid Note
if (e.id === 'd450b8a9-48e4-4dab-ae36-f4db763fda7c') { // invalid Note return e.message;
return e.message; case '9f466dab-c856-48cd-9e65-ff90ff750580':
} return 'note contains too many mentions';
if (e.id === '9f466dab-c856-48cd-9e65-ff90ff750580') { case '09d79f9e-64f1-4316-9cfa-e75c4d091574': // Instance is blocked
return 'note contains too many mentions'; return 'skip: blocked instance';
} }
} }
throw e; throw e;