additional fix for #1587

This commit is contained in:
psychobunny
2014-05-28 17:49:31 -04:00
parent 71214c6255
commit 74097be2e4

View File

@@ -159,7 +159,7 @@ accountsController.getAccount = function(req, res, next) {
userData.profileviews = 1;
}
if (callerUID !== parseInt(userData.uid, 10) && callerUID) {
if (callerUID !== parseInt(userData.uid, 10) && callerUID && !req.query.prefetched) {
user.incrementUserFieldBy(userData.uid, 'profileviews', 1);
}