forked from FoundKeyGang/FoundKey
Improve readability
This commit is contained in:
parent
54a87b25b3
commit
9b05b6ef28
1 changed files with 32 additions and 32 deletions
|
@ -36,7 +36,8 @@ export default async (job: Bull.Job): Promise<void> => {
|
||||||
if (keyIdLower.startsWith('acct:')) {
|
if (keyIdLower.startsWith('acct:')) {
|
||||||
logger.warn(`Old keyId is no longer supported. ${keyIdLower}`);
|
logger.warn(`Old keyId is no longer supported. ${keyIdLower}`);
|
||||||
return;
|
return;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
// アクティビティ内のホストの検証
|
// アクティビティ内のホストの検証
|
||||||
const host = toPuny(new URL(signature.keyId).hostname);
|
const host = toPuny(new URL(signature.keyId).hostname);
|
||||||
try {
|
try {
|
||||||
|
@ -71,7 +72,6 @@ export default async (job: Bull.Job): Promise<void> => {
|
||||||
|
|
||||||
key = await UserPublickeys.findOne(user.id).then(ensure);
|
key = await UserPublickeys.findOne(user.id).then(ensure);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Update Person activityの場合は、ここで署名検証/更新処理まで実施して終了
|
// Update Person activityの場合は、ここで署名検証/更新処理まで実施して終了
|
||||||
if (activity.type === 'Update') {
|
if (activity.type === 'Update') {
|
||||||
|
|
Loading…
Reference in a new issue