mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
boop
This commit is contained in:
parent
522ecabd07
commit
0060d8baa8
10
src/http.rs
10
src/http.rs
|
|
@ -48,13 +48,13 @@ pub async fn http_get_user(
|
||||||
user_name: web::Path<String>,
|
user_name: web::Path<String>,
|
||||||
data: Data<DatabaseHandle>,
|
data: Data<DatabaseHandle>,
|
||||||
) -> Result<HttpResponse, Error> {
|
) -> Result<HttpResponse, Error> {
|
||||||
let signed_by = signing_actor::<DbUser>(&request, None, &data).await?;
|
//let signed_by = signing_actor::<DbUser>(&request, None, &data).await?;
|
||||||
// here, checks can be made on the actor or the domain to which
|
// here, checks can be made on the actor or the domain to which
|
||||||
// it belongs, to verify whether it is allowed to access this resource
|
// it belongs, to verify whether it is allowed to access this resource
|
||||||
info!(
|
//info!(
|
||||||
"Fetch user request is signed by system account {}",
|
// "Fetch user request is signed by system account {}",
|
||||||
signed_by.id()
|
// signed_by.id()
|
||||||
);
|
//);
|
||||||
|
|
||||||
let db_user = data.local_user();
|
let db_user = data.local_user();
|
||||||
if user_name.into_inner() == db_user.name {
|
if user_name.into_inner() == db_user.name {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue