diff --git a/packages/backend/src/misc/count-same-renotes.ts b/packages/backend/src/misc/count-same-renotes.ts index 705fc35d57..c966dd3460 100644 --- a/packages/backend/src/misc/count-same-renotes.ts +++ b/packages/backend/src/misc/count-same-renotes.ts @@ -1,4 +1,4 @@ -import { prepared, scyllaClient } from "@/db/scylla"; +import { scyllaClient } from "@/db/scylla.js"; import { Notes } from "@/models/index.js"; /** diff --git a/packages/backend/src/services/note/delete.ts b/packages/backend/src/services/note/delete.ts index 5482c9563b..563b1fb887 100644 --- a/packages/backend/src/services/note/delete.ts +++ b/packages/backend/src/services/note/delete.ts @@ -30,9 +30,9 @@ import { } from "@/db/scylla.js"; /** - * 投稿を削除します。 - * @param user 投稿者 - * @param note 投稿 + * Delete a post + * @param user Poster + * @param note Post */ export default async function ( user: { id: User["id"]; uri: User["uri"]; host: User["host"] }, @@ -41,7 +41,7 @@ export default async function ( ) { const deletedAt = new Date(); - // この投稿を除く指定したユーザーによる指定したノートのリノートが存在しないとき + // If no other boosts exists except this (potentially boost) post if ( note.renoteId && (await countSameRenotes(user.id, note.renoteId, note.id)) === 0