[backend/federation] Improve logging regarding a renamed variable
This commit is contained in:
parent
0b77107b1e
commit
a20d50f793
1 changed files with 2 additions and 2 deletions
|
@ -42,10 +42,10 @@ public class ActivityHandlerService(
|
||||||
var resolvedActor = await userResolver.ResolveAsync(activity.Actor.Id);
|
var resolvedActor = await userResolver.ResolveAsync(activity.Actor.Id);
|
||||||
if (authenticatedUserId == null)
|
if (authenticatedUserId == null)
|
||||||
throw GracefulException
|
throw GracefulException
|
||||||
.UnprocessableEntity("Refusing to process activity without authFetchUserId");
|
.UnprocessableEntity("Refusing to process activity without authenticatedUserId");
|
||||||
if (resolvedActor.Id != authenticatedUserId && authenticatedUserId != null)
|
if (resolvedActor.Id != authenticatedUserId && authenticatedUserId != null)
|
||||||
throw GracefulException
|
throw GracefulException
|
||||||
.UnprocessableEntity($"Authorized fetch user id {authenticatedUserId} doesn't match resolved actor id {resolvedActor.Id}");
|
.UnprocessableEntity($"Authenticated user id {authenticatedUserId} doesn't match resolved actor id {resolvedActor.Id}");
|
||||||
if (new Uri(activity.Actor.Id).Host != new Uri(activity.Id).Host)
|
if (new Uri(activity.Actor.Id).Host != new Uri(activity.Id).Host)
|
||||||
throw GracefulException
|
throw GracefulException
|
||||||
.UnprocessableEntity($"Activity identifier ({activity.Actor.Id}) host doesn't match actor identifier ({activity.Id}) host");
|
.UnprocessableEntity($"Activity identifier ({activity.Actor.Id}) host doesn't match actor identifier ({activity.Id}) host");
|
||||||
|
|
Loading…
Add table
Reference in a new issue