From 8d51d4728f0eee2493de9b234157d8b942bbb061 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 27 May 2024 21:19:53 +0200 Subject: [PATCH] fix: use internal id not uid here too --- src/routes/activitypub/user/inbox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/activitypub/user/inbox.rs b/src/routes/activitypub/user/inbox.rs index 5e9a7a9c..7ccdc5cb 100644 --- a/src/routes/activitypub/user/inbox.rs +++ b/src/routes/activitypub/user/inbox.rs @@ -25,7 +25,7 @@ pub async fn page( AuthIdentity(auth): AuthIdentity, Query(page): Query, ) -> crate::Result> { - let Identity::Local { id: uid, .. } = &auth else { + let Identity::Local { id: uid, internal } = &auth else { // local inbox is only for local users return Err(UpubError::forbidden()); }; @@ -36,7 +36,7 @@ pub async fn page( crate::server::builders::paginate( url!(ctx, "/users/{id}/inbox/page"), Condition::any() - .add(model::addressing::Column::Actor.eq(uid)) + .add(model::addressing::Column::Actor.eq(*internal)) .add(model::object::Column::AttributedTo.eq(uid)) .add(model::activity::Column::Actor.eq(uid)), ctx.db(),