From 74097be2e4251d440a9cc08611ed9d2a459727c0 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 28 May 2014 17:49:31 -0400 Subject: [PATCH] additional fix for #1587 --- src/controllers/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js index 6957236cfe..a543797b4a 100644 --- a/src/controllers/accounts.js +++ b/src/controllers/accounts.js @@ -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); }