forked from mirrors/misskey
refactor(frontend): scripts -> utility
This commit is contained in:
10
packages/frontend/src/utility/get-appear-note.ts
Normal file
10
packages/frontend/src/utility/get-appear-note.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import * as Misskey from 'misskey-js';
|
||||
|
||||
export function getAppearNote(note: Misskey.entities.Note) {
|
||||
return Misskey.note.isPureRenote(note) ? note.renote : note;
|
||||
}
|
||||
Reference in New Issue
Block a user