From dfbadf5d1156282e5ac6a022d9e5558452150816 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 23 Apr 2024 06:29:52 +0200 Subject: [PATCH] fix: oops i meant server inbox GET, now it is --- src/routes/activitypub/inbox.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/activitypub/inbox.rs b/src/routes/activitypub/inbox.rs index 7fccc4a5..0239681b 100644 --- a/src/routes/activitypub/inbox.rs +++ b/src/routes/activitypub/inbox.rs @@ -2,7 +2,7 @@ use apb::{server::Inbox, Activity, ActivityType}; use axum::{extract::{Query, State}, http::StatusCode, Json}; use sea_orm::{QueryFilter, QuerySelect}; -use crate::{errors::UpubError, model::{self, addressing::EmbeddedActivity}, server::{auth::{AuthIdentity, Identity}, Context}, url}; +use crate::{errors::UpubError, model::{self, addressing::WrappedObject}, server::{auth::{AuthIdentity, Identity}, Context}, url}; use super::{jsonld::LD, JsonLD, Pagination}; @@ -20,16 +20,16 @@ pub async fn page( ) -> crate::Result> { let limit = page.batch.unwrap_or(20).min(50); let offset = page.offset.unwrap_or(0); - let activities = model::addressing::Entity::find_activities() + let objects = model::addressing::Entity::find_objects() .filter(auth.filter_condition()) .limit(limit) .offset(offset) - .into_model::() + .into_model::() .all(ctx.db()) .await?; let mut out = Vec::new(); - for activity in activities { - out.push(activity.ap_filled(ctx.db()).await?); + for object in objects { + out.push(object.ap_filled(ctx.db()).await?); } Ok(JsonLD( ctx.ap_collection_page(