mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-02 13:03:08 +02:00
c1514ce91d
Fix #13290
12 lines
420 B
TypeScript
12 lines
420 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import type { MiNote } from '@/models/Note.js';
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default function(note: MiNote): boolean {
|
|
// sync with NoteCreateService.isQuote
|
|
return note.renoteId != null && (note.text != null || note.hasPoll || (note.fileIds != null && note.fileIds.length > 0));
|
|
}
|