mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 14:58:09 +09:00
Improve readability
This commit is contained in:
parent
0273a18ae4
commit
9890b3ffa8
@ -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 New Issue
Block a user