mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
hide tracking pixel and add 403 to comment pages on private reddits
This commit is contained in:
@@ -117,11 +117,14 @@ class FrontController(RedditController):
|
||||
num_comments = VMenu('controller', NumCommentsMenu))
|
||||
def GET_comments(self, article, comment, context, sort, num_comments):
|
||||
"""Comment page for a given 'article'."""
|
||||
if comment and comment.link_id != article._id:
|
||||
if comment and comment.link_id != article._id:
|
||||
return self.abort404()
|
||||
|
||||
if not c.default_sr and c.site._id != article.sr_id:
|
||||
return self.abort404()
|
||||
|
||||
if not article.subreddit_slow.can_view(c.user):
|
||||
abort(403, 'forbidden')
|
||||
|
||||
#check for 304
|
||||
self.check_modified(article, 'comments')
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
dict(year=2008)}
|
||||
</p>
|
||||
%if g.tracker_url:
|
||||
<img alt="innocuous" src="${tracking.gen_url()}"/>
|
||||
<img alt="" src="${tracking.gen_url()}"/>
|
||||
%endif
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user