This commit is contained in:
Mateusz Gruszczyński committed 2026-10-14 14:55:04 +02:00
1 parent 9e133628e5
commit 0abc8e871d
6 files changed
+47 -7

No files matched your search

+4 -3
View File
@@ -1830,9 +1830,10 @@ pub async fn resource_mentions(
.await
.map_err(AuthError::database)?;
if access.is_none() {
return Err(AuthError::forbidden(
"This resource was not shared with your account.",
));
// A signed-in visitor can read public resources without a direct share.
// An empty list keeps member identities private and avoids treating
// unavailable mention suggestions as a failed page request.
return Ok(Json(serde_json::json!({ "users": [] })));
}
}
let rows = sqlx::query(queries::get(state.db.kind(), query))