mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-12 21:58:11 +09:00
Refactoring
This commit is contained in:
parent
8c52f28e39
commit
776d579065
@ -66,7 +66,7 @@ router.get('/notes/:note', async (ctx, next) => {
|
||||
|
||||
const note = await Note.findOne({
|
||||
_id: new mongo.ObjectID(ctx.params.note),
|
||||
$or: [ { visibility: 'public' }, { visibility: 'home' } ]
|
||||
visibility: { $in: ['public', 'home'] }
|
||||
});
|
||||
|
||||
if (note === null) {
|
||||
|
Loading…
Reference in New Issue
Block a user