mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 09:48:01 -05:00
Add robots "noindex, nofollow" to deleted and banned post pages.
This commit is contained in:
@@ -847,7 +847,8 @@ class LinkInfoPage(Reddit):
|
||||
else:
|
||||
self.duplicates = duplicates
|
||||
|
||||
Reddit.__init__(self, title = title, short_description=short_description, *a, **kw)
|
||||
robots = "noindex,nofollow" if link._deleted or link._spam else None
|
||||
Reddit.__init__(self, title = title, short_description=short_description, robots=robots, *a, **kw)
|
||||
|
||||
def build_toolbars(self):
|
||||
base_path = "/%s/%s/" % (self.link._id36, title_to_url(self.link.title))
|
||||
|
||||
Reference in New Issue
Block a user