fix lint
This commit is contained in:
@ -43,7 +43,7 @@ if (!['production', 'test'].includes(process.env.NODE_ENV || '')) {
|
||||
// Delay
|
||||
if (envOption.slow) {
|
||||
app.use(slow({
|
||||
delay: 3000
|
||||
delay: 3000,
|
||||
}));
|
||||
}
|
||||
}
|
||||
@ -74,7 +74,7 @@ router.get('/avatar/@:acct', async ctx => {
|
||||
const user = await Users.findOne({
|
||||
usernameLower: username.toLowerCase(),
|
||||
host: host === config.host ? null : host,
|
||||
isSuspended: false
|
||||
isSuspended: false,
|
||||
});
|
||||
|
||||
if (user) {
|
||||
@ -93,7 +93,7 @@ router.get('/random-avatar/:x', async ctx => {
|
||||
|
||||
router.get('/verify-email/:code', async ctx => {
|
||||
const profile = await UserProfiles.findOne({
|
||||
emailVerifyCode: ctx.params.code
|
||||
emailVerifyCode: ctx.params.code,
|
||||
});
|
||||
|
||||
if (profile != null) {
|
||||
@ -102,12 +102,12 @@ router.get('/verify-email/:code', async ctx => {
|
||||
|
||||
await UserProfiles.update({ userId: profile.userId }, {
|
||||
emailVerified: true,
|
||||
emailVerifyCode: null
|
||||
emailVerifyCode: null,
|
||||
});
|
||||
|
||||
publishMainStream(profile.userId, 'meUpdated', await Users.pack(profile.userId, { id: profile.userId }, {
|
||||
detail: true,
|
||||
includeSecrets: true
|
||||
includeSecrets: true,
|
||||
}));
|
||||
} else {
|
||||
ctx.status = 404;
|
||||
|
Reference in New Issue
Block a user