Skip to content

Node.js based forum software built for the modern web

only logged in users increase profile view count

Baris Soner Usaklia01008cf7dc8
diff --git a/src/routes/user.js b/src/routes/user.js
index b6574d245c..26ea4cc4f5 100644
--- a/src/routes/user.js
+++ b/src/routes/user.js
@@ -435,7 +435,7 @@ var fs = require('fs'),
userData.profileviews = 1;
}
- if (parseInt(callerUID, 10) !== parseInt(userData.uid, 10)) {
+ if (parseInt(callerUID, 10) !== parseInt(userData.uid, 10) && parseInt(callerUID, 0)) {
user.incrementUserFieldBy(userData.uid, 'profileviews', 1);
}