diff --git a/src/routes/activitypub/user/outbox.rs b/src/routes/activitypub/user/outbox.rs index 396553cd..e102d8ee 100644 --- a/src/routes/activitypub/user/outbox.rs +++ b/src/routes/activitypub/user/outbox.rs @@ -19,7 +19,11 @@ pub async fn page( Query(page): Query, AuthIdentity(auth): AuthIdentity, ) -> Result, StatusCode> { - let uid = ctx.uid(id.clone()); + let uid = if id.starts_with('+') { + format!("https://{}", id.replacen('+', "", 1).replace('@', "/")) + } else { + ctx.uid(id.clone()) + }; let limit = page.batch.unwrap_or(20).min(50); let offset = page.offset.unwrap_or(0);