mirror of
https://github.com/versia-pub/activitypub.git
synced 2026-03-13 19:09:17 +01:00
fix: make sensitive in AP optional bc AP
This commit is contained in:
parent
f5e4092bca
commit
474b57652b
3 changed files with 6 additions and 6 deletions
|
|
@ -305,7 +305,7 @@ pub async fn receive_lysand_note(
|
|||
let ap_note = crate::objects::post::Note {
|
||||
kind: Default::default(),
|
||||
id,
|
||||
sensitive: note.is_sensitive.unwrap_or(false),
|
||||
sensitive: Some(note.is_sensitive.unwrap_or(false)),
|
||||
cc,
|
||||
to,
|
||||
tag,
|
||||
|
|
@ -336,7 +336,7 @@ pub async fn receive_lysand_note(
|
|||
id: Set(note.id.to_string()),
|
||||
creator: Set(lysand_author.id.clone()),
|
||||
content: Set(ap_note.content.clone()),
|
||||
sensitive: Set(ap_note.sensitive),
|
||||
sensitive: Set(ap_note.sensitive.unwrap_or_default()),
|
||||
created_at: Set(Utc
|
||||
.timestamp_micros(note.created_at.unix_timestamp())
|
||||
.unwrap()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue