1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 09:46:06 +02:00

Fix GitHub bot user query

This commit is contained in:
Akihiko Odaki
2018-03-30 13:00:05 +09:00
parent 78f7464891
commit f1140ad300

View File

@@ -9,7 +9,8 @@ module.exports = async (app: express.Application) => {
if (config.github_bot == null) return;
const bot = await User.findOne({
usernameLower: config.github_bot.username.toLowerCase()
usernameLower: config.github_bot.username.toLowerCase(),
host: null
});
if (bot == null) {