Skip to content

Node.js based forum software built for the modern web

parseInt uid

Baris Soner Usakli0198024db0e7
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);
}