mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 17:45:51 +02:00
Refactor
This commit is contained in:
@@ -30,7 +30,7 @@ import { isDuplicateKeyValueError } from '../../misc/is-duplicate-key-value-erro
|
||||
import { ensure } from '../../prelude/ensure';
|
||||
import { checkHitAntenna } from '../../misc/check-hit-antenna';
|
||||
import { addNoteToAntenna } from '../add-note-to-antenna';
|
||||
import countSameRenotes from '../count-same-renotes';
|
||||
import { countSameRenotes } from '../../misc/count-same-renotes';
|
||||
|
||||
type NotificationType = 'reply' | 'renote' | 'quote' | 'mention';
|
||||
|
||||
@@ -237,7 +237,7 @@ export default async (user: User, data: Option, silent = false) => new Promise<N
|
||||
saveReply(data.reply, note);
|
||||
}
|
||||
|
||||
//この投稿を除く指定したユーザーによる指定したノートのリノートが存在しないとき
|
||||
// この投稿を除く指定したユーザーによる指定したノートのリノートが存在しないとき
|
||||
if (data.renote && (await countSameRenotes(user.id, data.renote.id, note.id) === 0)) {
|
||||
incRenoteCount(data.renote);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user