Improve readability

This commit is contained in:
syuilo 2019-04-18 00:57:06 +09:00
parent 54a87b25b3
commit 9b05b6ef28
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 32 additions and 32 deletions

View File

@ -36,7 +36,8 @@ export default async (job: Bull.Job): Promise<void> => {
if (keyIdLower.startsWith('acct:')) {
logger.warn(`Old keyId is no longer supported. ${keyIdLower}`);
return;
} else {
}
// アクティビティ内のホストの検証
const host = toPuny(new URL(signature.keyId).hostname);
try {
@ -71,7 +72,6 @@ export default async (job: Bull.Job): Promise<void> => {
key = await UserPublickeys.findOne(user.id).then(ensure);
}
}
// Update Person activityの場合は、ここで署名検証/更新処理まで実施して終了
if (activity.type === 'Update') {