1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 22:45:40 +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

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