2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

FIX: correctly log topic timings as background

This commit is contained in:
Sam 2018-01-19 10:37:27 +11:00
parent aa65003087
commit 8ad43f01c2
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ class Middleware::RequestTracker
status: status,
is_crawler: helper.is_crawler?,
has_auth_cookie: helper.has_auth_cookie?,
is_background: request.path =~ /^\/message-bus\// || request.path == /\/topics\/timings/,
is_background: !!(request.path =~ /^\/message-bus\// || request.path =~ /\/topics\/timings/),
is_mobile: helper.is_mobile?,
track_view: track_view,
timing: timing