{"action":"closed","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3328","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3328/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3328/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3328/events","html_url":"https://github.com/NodeBB/NodeBB/issues/3328","id":95505582,"number":3328,"title":"View Count Behaviour","user":{"login":"julianlam","id":923011,"avatar_url":"https://avatars.githubusercontent.com/u/923011?v=3","gravatar_id":"","url":"https://api.github.com/users/julianlam","html_url":"https://github.com/julianlam","followers_url":"https://api.github.com/users/julianlam/followers","following_url":"https://api.github.com/users/julianlam/following{/other_user}","gists_url":"https://api.github.com/users/julianlam/gists{/gist_id}","starred_url":"https://api.github.com/users/julianlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianlam/subscriptions","organizations_url":"https://api.github.com/users/julianlam/orgs","repos_url":"https://api.github.com/users/julianlam/repos","events_url":"https://api.github.com/users/julianlam/events{/privacy}","received_events_url":"https://api.github.com/users/julianlam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NodeBB/NodeBB/labels/request%20for%20comments","name":"request for comments","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"julianlam","id":923011,"avatar_url":"https://avatars.githubusercontent.com/u/923011?v=3","gravatar_id":"","url":"https://api.github.com/users/julianlam","html_url":"https://github.com/julianlam","followers_url":"https://api.github.com/users/julianlam/followers","following_url":"https://api.github.com/users/julianlam/following{/other_user}","gists_url":"https://api.github.com/users/julianlam/gists{/gist_id}","starred_url":"https://api.github.com/users/julianlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julianlam/subscriptions","organizations_url":"https://api.github.com/users/julianlam/orgs","repos_url":"https://api.github.com/users/julianlam/repos","events_url":"https://api.github.com/users/julianlam/events{/privacy}","received_events_url":"https://api.github.com/users/julianlam/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-07-16T19:16:13Z","updated_at":"2015-08-05T15:04:13Z","closed_at":"2015-08-05T15:04:12Z","body":"Haven't heard a complaint about this for almost a year, but it bears discussion:\r\n\r\n> If you refresh a topic, should the view count go up?\r\n\r\nArguments:\r\n* Technically, you're _still_ viewing the topic, so the count shouldn't go up\r\n* People can (and will) abuse this just for fun\r\n* View counts are maintained on the server-side and we don't really track who views what\r\n\r\nOne possible implementation:\r\n* ~~Every time a topic is loaded, the `tid` is saved into `req.session`, so if they re-visit the topic, the view count does not increment~~ (Nevermind, see below)\r\n    * But what if they view the topic 6 hours later, should it count again? Should there be a timeout for the value saved into `req.session`?\r\n    * What if you viewed a topic, and someone replied a minute later, and you viewed the new reply? One could argue that the topic ought to record a second view from you\r\n\r\nRFC :smile: "}}