mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-08 01:33:57 +09:00
Fix external service authentication (#4846)
This commit is contained in:
@ -193,12 +193,8 @@ router.get('/gh/cb', async ctx => {
|
||||
}
|
||||
|
||||
const link = await UserProfiles.createQueryBuilder()
|
||||
.where('github @> :github', {
|
||||
github: {
|
||||
id: id,
|
||||
},
|
||||
})
|
||||
.andWhere('userHost IS NULL')
|
||||
.where('"githubId" = :id', { id: id })
|
||||
.andWhere('"userHost" IS NULL')
|
||||
.getOne();
|
||||
|
||||
if (link == null) {
|
||||
|
Reference in New Issue
Block a user