forked from alemi/upub
fix: show outbox for remote users with url trick
This commit is contained in:
parent
964b45e50b
commit
dab4550d08
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ pub async fn page(
|
||||||
Query(page): Query<Pagination>,
|
Query(page): Query<Pagination>,
|
||||||
AuthIdentity(auth): AuthIdentity,
|
AuthIdentity(auth): AuthIdentity,
|
||||||
) -> Result<JsonLD<serde_json::Value>, StatusCode> {
|
) -> Result<JsonLD<serde_json::Value>, 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 limit = page.batch.unwrap_or(20).min(50);
|
||||||
let offset = page.offset.unwrap_or(0);
|
let offset = page.offset.unwrap_or(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue