From e7eea3901fae0af38925cff3388276a429aa274b Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 13 Feb 2022 19:09:13 +0900 Subject: [PATCH] Implement User::outbox_page07() --- plume-models/src/users.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plume-models/src/users.rs b/plume-models/src/users.rs index b64b451e..34b628fe 100644 --- a/plume-models/src/users.rs +++ b/plume-models/src/users.rs @@ -15,7 +15,9 @@ use activitystreams::{ activity::Delete as Delete07, actor::AsApActor, actor::{ApActor as ApActor07, Endpoints as Endpoints07, Person as Person07}, - collection::OrderedCollection as OrderedCollection07, + collection::{ + OrderedCollection as OrderedCollection07, OrderedCollectionPage as OrderedCollectionPage07, + }, iri_string::types::IriString, object::{AsObject as _, Image as Image07, Tombstone as Tombstone07}, prelude::*, @@ -480,6 +482,15 @@ impl User { self.outbox_collection_page(conn, (min, max))?, )) } + pub fn outbox_page07( + &self, + conn: &Connection, + (min, max): (i32, i32), + ) -> Result> { + Ok(ActivityStream::new( + self.outbox_collection_page07(conn, (min, max))?, + )) + } pub fn outbox_collection_page( &self, conn: &Connection,