mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Fix comment
This commit is contained in:
parent
b7d422ff12
commit
65ae943d32
@ -31,7 +31,7 @@ module.exports = (params, user) =>
|
||||
return rej('post not found');
|
||||
}
|
||||
|
||||
// already favorited
|
||||
// if already favorited
|
||||
const exist = await Favorite.findOne({
|
||||
post_id: post._id,
|
||||
user_id: user._id
|
||||
|
@ -31,7 +31,7 @@ module.exports = (params, user) =>
|
||||
return rej('post not found');
|
||||
}
|
||||
|
||||
// already favorited
|
||||
// if already favorited
|
||||
const exist = await Favorite.findOne({
|
||||
post_id: post._id,
|
||||
user_id: user._id
|
||||
|
@ -43,7 +43,7 @@ module.exports = (params, user) =>
|
||||
return rej('-need-translate-');
|
||||
}
|
||||
|
||||
// already liked
|
||||
// if already liked
|
||||
const exist = await Like.findOne({
|
||||
post_id: post._id,
|
||||
user_id: user._id,
|
||||
|
@ -38,7 +38,7 @@ module.exports = (params, user) =>
|
||||
return rej('post not found');
|
||||
}
|
||||
|
||||
// already liked
|
||||
// if already liked
|
||||
const exist = await Like.findOne({
|
||||
post_id: post._id,
|
||||
user_id: user._id,
|
||||
|
@ -52,7 +52,7 @@ module.exports = (params, user) =>
|
||||
return rej('invalid choice');
|
||||
}
|
||||
|
||||
// already voted
|
||||
// if already voted
|
||||
const exist = await Vote.findOne({
|
||||
post_id: post._id,
|
||||
user_id: user._id
|
||||
|
Loading…
Reference in New Issue
Block a user