mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-27 14:28:49 +09:00
fix(Queue): InboxやDeliverキューにdataフィールドが空のジョブが登録されないように (MisskeyIO#307)
This commit is contained in:
parent
c64be8b9f9
commit
efee8f45f9
@ -121,7 +121,7 @@ export class QueueService {
|
||||
content,
|
||||
to: d[0],
|
||||
isSharedInbox: d[1],
|
||||
} as DeliverJobData,
|
||||
},
|
||||
opts,
|
||||
})));
|
||||
|
||||
|
@ -162,7 +162,13 @@ export class ActivityPubServerService {
|
||||
}
|
||||
}
|
||||
|
||||
this.queueService.inbox(request.body as IActivity, signature);
|
||||
const activity = request.body as IActivity;
|
||||
if (!activity.type || !signature.keyId) {
|
||||
reply.code(400);
|
||||
return;
|
||||
}
|
||||
|
||||
this.queueService.inbox(activity, signature);
|
||||
|
||||
reply.code(202);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user