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";
|
import { Notes } from "@/models/index.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,9 +30,9 @@ import {
|
||||||
} from "@/db/scylla.js";
|
} from "@/db/scylla.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 投稿を削除します。
|
* Delete a post
|
||||||
* @param user 投稿者
|
* @param user Poster
|
||||||
* @param note 投稿
|
* @param note Post
|
||||||
*/
|
*/
|
||||||
export default async function (
|
export default async function (
|
||||||
user: { id: User["id"]; uri: User["uri"]; host: User["host"] },
|
user: { id: User["id"]; uri: User["uri"]; host: User["host"] },
|
||||||
|
@ -41,7 +41,7 @@ export default async function (
|
||||||
) {
|
) {
|
||||||
const deletedAt = new Date();
|
const deletedAt = new Date();
|
||||||
|
|
||||||
// この投稿を除く指定したユーザーによる指定したノートのリノートが存在しないとき
|
// If no other boosts exists except this (potentially boost) post
|
||||||
if (
|
if (
|
||||||
note.renoteId &&
|
note.renoteId &&
|
||||||
(await countSameRenotes(user.id, note.renoteId, note.id)) === 0
|
(await countSameRenotes(user.id, note.renoteId, note.id)) === 0
|
||||||
|
|
Loading…
Reference in a new issue