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); }