mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-19 01:09:55 +09:00
* enhance(backend): 配送先が410 Goneで応答してきた場合配送停止するように * Update CHANGELOG.md * Deliverキューのデータに宛先がSharedInboxかどうかのフラグを追加 * Fix lint * Mapを使用するように * Fix typo
This commit is contained in:
@ -116,7 +116,7 @@ export class DeliverProcessorService {
|
||||
// 4xx
|
||||
if (res.isClientError) {
|
||||
// 相手が閉鎖していることを明示しているため、配送停止する
|
||||
if (res.statusCode === 410) {
|
||||
if (job.data.isSharedInbox && res.statusCode === 410) {
|
||||
this.federatedInstanceService.fetch(host).then(i => {
|
||||
this.instancesRepository.update(i.id, {
|
||||
isSuspended: true,
|
||||
|
@ -12,6 +12,8 @@ export type DeliverJobData = {
|
||||
content: unknown;
|
||||
/** inbox URL to deliver */
|
||||
to: string;
|
||||
/** whether it is sharedInbox */
|
||||
isSharedInbox: boolean;
|
||||
};
|
||||
|
||||
export type InboxJobData = {
|
||||
|
Reference in New Issue
Block a user