From 5863fb6b8feeca5ecd234436b809ef713ce2bbfb Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Tue, 6 Jan 2015 00:43:44 -0500 Subject: [PATCH] pixel: Use user id36 rather than user name. --- r2/r2/lib/tracking.py | 2 +- scripts/traffic/decrypt_userinfo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/r2/r2/lib/tracking.py b/r2/r2/lib/tracking.py index a4c3bc55c..d2fc0a3c4 100644 --- a/r2/r2/lib/tracking.py +++ b/r2/r2/lib/tracking.py @@ -152,7 +152,7 @@ def get_srpath(): def get_pageview_pixel_url(): """Return a URL to use for tracking pageviews for the current request.""" data = [ - c.user.name if c.user_is_loggedin else "", + c.user._id36 if c.user_is_loggedin else "", get_srpath(), c.lang or "", c.cname, diff --git a/scripts/traffic/decrypt_userinfo.c b/scripts/traffic/decrypt_userinfo.c index c4a266353..79bf326e0 100644 --- a/scripts/traffic/decrypt_userinfo.c +++ b/scripts/traffic/decrypt_userinfo.c @@ -125,7 +125,7 @@ int main(int argc, char** argv) switch (field_index) { case FIELD_USER: - /* we don't use the username; skip it */ + /* we don't use the user id; skip it */ break; case FIELD_SRPATH: fputc('\t', stdout);