fix lint
This commit is contained in:
@@ -68,7 +68,7 @@ router.get('/notes/:note', async (ctx, next) => {
|
||||
const note = await Notes.findOne({
|
||||
id: ctx.params.note,
|
||||
visibility: In(['public', 'home']),
|
||||
localOnly: false
|
||||
localOnly: false,
|
||||
});
|
||||
|
||||
if (note == null) {
|
||||
@@ -97,7 +97,7 @@ router.get('/notes/:note/activity', async ctx => {
|
||||
id: ctx.params.note,
|
||||
userHost: null,
|
||||
visibility: In(['public', 'home']),
|
||||
localOnly: false
|
||||
localOnly: false,
|
||||
});
|
||||
|
||||
if (note == null) {
|
||||
@@ -128,7 +128,7 @@ router.get('/users/:user/publickey', async ctx => {
|
||||
|
||||
const user = await Users.findOne({
|
||||
id: userId,
|
||||
host: null
|
||||
host: null,
|
||||
});
|
||||
|
||||
if (user == null) {
|
||||
@@ -167,7 +167,7 @@ router.get('/users/:user', async (ctx, next) => {
|
||||
const user = await Users.findOne({
|
||||
id: userId,
|
||||
host: null,
|
||||
isSuspended: false
|
||||
isSuspended: false,
|
||||
});
|
||||
|
||||
await userInfo(ctx, user);
|
||||
@@ -179,7 +179,7 @@ router.get('/@:user', async (ctx, next) => {
|
||||
const user = await Users.findOne({
|
||||
usernameLower: ctx.params.user.toLowerCase(),
|
||||
host: null,
|
||||
isSuspended: false
|
||||
isSuspended: false,
|
||||
});
|
||||
|
||||
await userInfo(ctx, user);
|
||||
@@ -190,7 +190,7 @@ router.get('/@:user', async (ctx, next) => {
|
||||
router.get('/emojis/:emoji', async ctx => {
|
||||
const emoji = await Emojis.findOne({
|
||||
host: null,
|
||||
name: ctx.params.emoji
|
||||
name: ctx.params.emoji,
|
||||
});
|
||||
|
||||
if (emoji == null) {
|
||||
|
Reference in New Issue
Block a user