mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-02 00:38:14 +09:00
✌️
This commit is contained in:
parent
bc197bc958
commit
f47377d181
@ -394,13 +394,14 @@ export default async (user: IUser, data: {
|
||||
|
||||
//#region TODO: これ重い
|
||||
// 今までで同じ投稿をRenoteしているか
|
||||
const existRenote = await Note.findOne({
|
||||
userId: user._id,
|
||||
renoteId: data.renote._id,
|
||||
_id: {
|
||||
$ne: note._id
|
||||
}
|
||||
});
|
||||
//const existRenote = await Note.findOne({
|
||||
// userId: user._id,
|
||||
// renoteId: data.renote._id,
|
||||
// _id: {
|
||||
// $ne: note._id
|
||||
// }
|
||||
//});
|
||||
const existRenote = null;
|
||||
//#endregion
|
||||
|
||||
if (!existRenote) {
|
||||
|
Loading…
Reference in New Issue
Block a user