CWs are optional
This commit is contained in:
parent
6544d7d1da
commit
e403099f47
|
@ -55,7 +55,7 @@ pub trait Inbox {
|
||||||
let previous_comment = Comment::find_by_ap_url(conn, previous_url.clone());
|
let previous_comment = Comment::find_by_ap_url(conn, previous_url.clone());
|
||||||
Comment::insert(conn, NewComment {
|
Comment::insert(conn, NewComment {
|
||||||
content: note.object_props.content_string().unwrap(),
|
content: note.object_props.content_string().unwrap(),
|
||||||
spoiler_text: note.object_props.summary_string().unwrap(),
|
spoiler_text: note.object_props.summary_string().unwrap_or(String::from("")),
|
||||||
ap_url: note.object_props.id_string().ok(),
|
ap_url: note.object_props.id_string().ok(),
|
||||||
in_response_to_id: previous_comment.clone().map(|c| c.id),
|
in_response_to_id: previous_comment.clone().map(|c| c.id),
|
||||||
post_id: previous_comment
|
post_id: previous_comment
|
||||||
|
|
Loading…
Reference in New Issue