forked from alemi/upub
fix: temporarily don't set replies
we don't serve those routes yet
This commit is contained in:
parent
ee6120190d
commit
35804730de
1 changed files with 7 additions and 7 deletions
|
@ -49,16 +49,16 @@ pub async fn view(
|
|||
.map(|x| x.ap())
|
||||
.collect::<Vec<serde_json::Value>>();
|
||||
|
||||
let replies =
|
||||
serde_json::Value::new_object()
|
||||
.set_id(Some(&crate::url!(ctx, "/objects/{id}/replies")))
|
||||
.set_collection_type(Some(apb::CollectionType::OrderedCollection))
|
||||
.set_first(apb::Node::link(crate::url!(ctx, "/objects/{id}/replies/page")))
|
||||
.set_total_items(Some(object.comments as u64));
|
||||
// let replies =
|
||||
// serde_json::Value::new_object()
|
||||
// .set_id(Some(&crate::url!(ctx, "/objects/{id}/replies")))
|
||||
// .set_collection_type(Some(apb::CollectionType::OrderedCollection))
|
||||
// .set_first(apb::Node::link(crate::url!(ctx, "/objects/{id}/replies/page")))
|
||||
// .set_total_items(Some(object.comments as u64));
|
||||
|
||||
Ok(JsonLD(
|
||||
object.ap()
|
||||
.set_replies(apb::Node::object(replies))
|
||||
// .set_replies(apb::Node::object(replies))
|
||||
.set_attachment(apb::Node::array(attachments))
|
||||
.ld_context()
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue