Use Blog::outbox_page07() instead of outbox_page()
This commit is contained in:
+3
-4
@@ -1,5 +1,4 @@
|
||||
use activitypub::collection::OrderedCollectionPage;
|
||||
use activitystreams::collection::OrderedCollection as OrderedCollection07;
|
||||
use activitystreams::collection::{OrderedCollection, OrderedCollectionPage};
|
||||
use diesel::SaveChangesDsl;
|
||||
use rocket::{
|
||||
http::ContentType,
|
||||
@@ -348,7 +347,7 @@ pub fn update(
|
||||
}
|
||||
|
||||
#[get("/~/<name>/outbox")]
|
||||
pub fn outbox(name: String, conn: DbConn) -> Option<ActivityStream<OrderedCollection07>> {
|
||||
pub fn outbox(name: String, conn: DbConn) -> Option<ActivityStream<OrderedCollection>> {
|
||||
let blog = Blog::find_by_fqn(&conn, &name).ok()?;
|
||||
blog.outbox07(&conn).ok()
|
||||
}
|
||||
@@ -360,7 +359,7 @@ pub fn outbox_page(
|
||||
conn: DbConn,
|
||||
) -> Option<ActivityStream<OrderedCollectionPage>> {
|
||||
let blog = Blog::find_by_fqn(&conn, &name).ok()?;
|
||||
blog.outbox_page(&conn, page.limits()).ok()
|
||||
blog.outbox_page07(&conn, page.limits()).ok()
|
||||
}
|
||||
#[get("/~/<name>/atom.xml")]
|
||||
pub fn atom_feed(name: String, conn: DbConn) -> Option<Content<String>> {
|
||||
|
||||
Reference in New Issue
Block a user