2024-05-17 10:59:45 +02:00
|
|
|
use crate::model::entity::note;
|
|
|
|
|
2024-05-20 12:14:02 +02:00
|
|
|
// for napi export
|
2024-05-17 10:59:45 +02:00
|
|
|
// https://github.com/napi-rs/napi-rs/issues/2060
|
|
|
|
type Note = note::Model;
|
|
|
|
|
|
|
|
#[crate::export]
|
|
|
|
pub fn is_quote(note: Note) -> bool {
|
|
|
|
note.renote_id.is_some() && (note.text.is_some() || note.has_poll || !note.file_ids.is_empty())
|
|
|
|
}
|