mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-12 20:26:43 -06:00
059eb6d379
* fix(frontend): リノートの判定が甘いのを修正 * fix * Update Changelog * fix * use type assertion * fix + add comments * lint * misskey-jsに移動 * PureRenote -> Renote * isRenote -> isPureRenote
10 lines
269 B
TypeScript
10 lines
269 B
TypeScript
/*
|
|
* 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;
|
|
}
|