summaryrefslogtreecommitdiff
path: root/src/queue/processors/http/process-inbox.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-14 14:39:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-14 14:39:07 +0900
commitd81c20f163f0884d04cd11e46221bfefc0ac9f22 (patch)
tree68a7b4120540f580975eb21978b19d5375fd61b3 /src/queue/processors/http/process-inbox.ts
parentBetter indexes (diff)
downloadsharkey-d81c20f163f0884d04cd11e46221bfefc0ac9f22.tar.gz
sharkey-d81c20f163f0884d04cd11e46221bfefc0ac9f22.tar.bz2
sharkey-d81c20f163f0884d04cd11e46221bfefc0ac9f22.zip
hostLowerは廃止してhostにlowerしたものを入れるように
Diffstat (limited to 'src/queue/processors/http/process-inbox.ts')
-rw-r--r--src/queue/processors/http/process-inbox.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue/processors/http/process-inbox.ts b/src/queue/processors/http/process-inbox.ts
index ce5b7d5a89..a2c6bf4f90 100644
--- a/src/queue/processors/http/process-inbox.ts
+++ b/src/queue/processors/http/process-inbox.ts
@@ -32,7 +32,7 @@ export default async (job: kue.Job, done): Promise<void> => {
return;
}
- user = await User.findOne({ usernameLower: username, hostLower: host }) as IRemoteUser;
+ user = await User.findOne({ usernameLower: username, host: host.toLowerCase() }) as IRemoteUser;
} else {
user = await User.findOne({
host: { $ne: null },