mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Fix bug
This commit is contained in:
parent
2ee0e81140
commit
a0ea46a1ae
@ -19,6 +19,7 @@ export default async (job: kue.Job, done): Promise<void> => {
|
||||
if (host === null) {
|
||||
console.warn(`request was made by local user: @${username}`);
|
||||
done();
|
||||
return;
|
||||
}
|
||||
|
||||
user = await User.findOne({ usernameLower: username, hostLower: host }) as IRemoteUser;
|
||||
@ -40,7 +41,8 @@ export default async (job: kue.Job, done): Promise<void> => {
|
||||
}
|
||||
|
||||
if (!verifySignature(signature, user.account.publicKey.publicKeyPem)) {
|
||||
done(new Error('signature verification failed'));
|
||||
console.warn('signature verification failed');
|
||||
done();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user