From 0198024db0e7e1d45e2fa09a61bff09050e7eb56 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Tue, 14 Jan 2014 07:36:01 -0500 Subject: [PATCH] parseInt uid --- src/routes/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/user.js b/src/routes/user.js index 35ecc00857..bbd8fca5bd 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -424,7 +424,7 @@ var fs = require('fs'), if (!userData.profileviews) { userData.profileviews = 1; } - if (callerUID !== userData.uid) { + if (parseInt(callerUID, 10) !== parseInt(userData.uid, 10)) { user.incrementUserFieldBy(userData.uid, 'profileviews', 1); }