mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 10:05:46 +01:00
Add note
This commit is contained in:
parent
6b0a42af27
commit
b844a8e9d5
1 changed files with 2 additions and 0 deletions
|
@ -392,6 +392,7 @@ export default async (user: IUser, data: {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//#region TODO: これ重い
|
||||||
// 今までで同じ投稿をRenoteしているか
|
// 今までで同じ投稿をRenoteしているか
|
||||||
const existRenote = await Note.findOne({
|
const existRenote = await Note.findOne({
|
||||||
userId: user._id,
|
userId: user._id,
|
||||||
|
@ -400,6 +401,7 @@ export default async (user: IUser, data: {
|
||||||
$ne: note._id
|
$ne: note._id
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//#endregion
|
||||||
|
|
||||||
if (!existRenote) {
|
if (!existRenote) {
|
||||||
// Update renoteee status
|
// Update renoteee status
|
||||||
|
|
Loading…
Reference in a new issue