diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-06 14:35:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-06 14:35:17 +0900 |
| commit | 862463a13cc952919322b4e2f06c196bf2850517 (patch) | |
| tree | e8cd287b74028e589bb12ad575e98b1813d62417 /src/queue/processors/http/process-inbox.ts | |
| parent | wip (diff) | |
| download | sharkey-862463a13cc952919322b4e2f06c196bf2850517.tar.gz sharkey-862463a13cc952919322b4e2f06c196bf2850517.tar.bz2 sharkey-862463a13cc952919322b4e2f06c196bf2850517.zip | |
Fix bug
Diffstat (limited to 'src/queue/processors/http/process-inbox.ts')
| -rw-r--r-- | src/queue/processors/http/process-inbox.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/queue/processors/http/process-inbox.ts b/src/queue/processors/http/process-inbox.ts index c3074429f8..4666e7f373 100644 --- a/src/queue/processors/http/process-inbox.ts +++ b/src/queue/processors/http/process-inbox.ts @@ -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; } |