forked from mirror/misskey
fix
This commit is contained in:
parent
a1e6cb02b8
commit
fc20ef0181
@ -56,7 +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 host = new URL(job.data.signature.keyId).host;
|
const signature = 'version' in job.data.signature ? job.data.signature.value : job.data.signature;
|
||||||
|
const host = new URL(signature.keyId).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