fix(backend): Prevent retry of inbox jobs with role-based validation errors (#17167)

* Initial plan

* Handle too many mentions error in inbox without retry

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
Copilot 2026-04-15 11:39:49 +09:00 committed by GitHub
commit 12e590a63f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,6 +252,9 @@ export class InboxProcessorService implements OnApplicationShutdown {
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';
}
}
throw e;
}