mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 22:39:33 +09:00
inbox-delayed use actor if no signature
This commit is contained in:
parent
8104963e1d
commit
154a2026ea
@ -56,8 +56,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||||||
const res = [] as [string, number][];
|
const res = [] as [string, number][];
|
||||||
|
|
||||||
for (const job of jobs) {
|
for (const job of jobs) {
|
||||||
const signature = 'version' in job.data.signature ? job.data.signature.value : job.data.signature;
|
const signature = job.data.signature ? 'version' in job.data.signature ? job.data.signature.value : job.data.signature : null;
|
||||||
const host = Array.isArray(signature) ? 'TODO' : new URL(signature.keyId).host;
|
const host = signature ? Array.isArray(signature) ? 'TODO' : new URL(signature.keyId).host : new URL(job.data.activity.actor).host;
|
||||||
if (res.find(x => x[0] === host)) {
|
if (res.find(x => x[0] === host)) {
|
||||||
res.find(x => x[0] === host)![1]++;
|
res.find(x => x[0] === host)![1]++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user