Stats Page Overhaul (#4292)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo
2025-12-19 13:23:55 -07:00
committed by GitHub
parent 20197fa712
commit e1f421ccc0
175 changed files with 12122 additions and 5746 deletions
+9 -9
View File
@@ -24,17 +24,17 @@ public class DeviceTrackingMiddleware(RequestDelegate next, ILogger<DeviceTracki
IClientInfoAccessor clientInfoAccessor,
IUserContext userContext)
{
var endpoint = context.GetEndpoint();
var skipTracking = endpoint?.Metadata.GetMetadata<SkipDeviceTrackingAttribute>() != null;
if (skipTracking)
{
await next(context);
return;
}
try
{
var endpoint = context.GetEndpoint();
var skipTracking = endpoint?.Metadata.GetMetadata<SkipDeviceTrackingAttribute>() != null;
if (skipTracking)
{
await next(context);
return;
}
var userId = userContext.GetUserId();
var clientInfo = clientInfoAccessor.Current;
var clientUiFingerprint = clientInfoAccessor.CurrentUiFingerprint; // string from webapp header