fix import
This commit is contained in:
parent
d0665c2fc2
commit
b06e27161f
2 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
import { prepared, scyllaClient } from "@/db/scylla";
|
||||
import { scyllaClient } from "@/db/scylla.js";
|
||||
import { Notes } from "@/models/index.js";
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue