Fix instance actor comparison for authorized fetch
This commit is contained in:
parent
331f3a5322
commit
a3441a1f35
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ public class AuthorizedFetchMiddleware(
|
|||
if (attribute != null && config.Value.AuthorizedFetch) {
|
||||
var request = ctx.Request;
|
||||
|
||||
var instanceActorUri = $"https://{instance.Value.WebDomain}/users/{(await userSvc.GetInstanceActor()).Id}";
|
||||
//TODO: cache this somewhere
|
||||
var instanceActorUri = $"/users/{(await userSvc.GetInstanceActor()).Id}";
|
||||
if (ctx.Request.Path.Value == instanceActorUri) {
|
||||
await next(ctx);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue