This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -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) {