mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Toolbar: Remove from random redirect
The reddit toolbar is no longer supported. Remove the toolbar link from the random link redirector (aka serendipity button).
This commit is contained in:
@@ -128,7 +128,8 @@ class FrontController(RedditController):
|
||||
links, first, last, before, after = builder.get_items()
|
||||
|
||||
if links:
|
||||
return self.redirect(add_sr("/tb/" + links[0]._id36))
|
||||
redirect_url = links[0].make_permalink_slow(force_domain=True)
|
||||
return self.redirect(redirect_url)
|
||||
else:
|
||||
return self.redirect(add_sr('/'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user