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

@ -31,7 +31,7 @@ export default async function(user: User, note: Note, quiet = false) {
if (!quiet) {
publishNoteStream(note.id, 'deleted', {
deletedAt: deletedAt
deletedAt: deletedAt,
});
//#region ローカルの投稿なら削除アクティビティを配送
@ -41,7 +41,7 @@ export default async function(user: User, note: Note, quiet = false) {
// if deletd note is renote
if (note.renoteId && note.text == null && !note.hasPoll && (note.fileIds == null || note.fileIds.length == 0)) {
renote = await Notes.findOne({
id: note.renoteId
id: note.renoteId,
});
}
@ -76,7 +76,7 @@ export default async function(user: User, note: Note, quiet = false) {
await Notes.delete({
id: note.id,
userId: user.id
userId: user.id,
});
}
@ -116,14 +116,14 @@ async function getMentionedRemoteUsers(note: Note) {
// renote / quote
if (note.renoteUserId) {
where.push({
id: note.renoteUserId
id: note.renoteUserId,
});
}
if (where.length === 0) return [];
return await Users.find({
where
where,
}) as IRemoteUser[];
}