mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
fix buttons (missing argument to _by_url)
This commit is contained in:
@@ -1035,7 +1035,7 @@ class ApiController(RedditController):
|
||||
uh = request.get.get('uh', "")
|
||||
|
||||
try:
|
||||
links = Link._by_url(url)
|
||||
links = Link._by_url(url,None)
|
||||
except:
|
||||
links = []
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class ButtonsController(RedditController):
|
||||
css = nop('css'))
|
||||
def GET_button_content(self, url, title, css):
|
||||
try:
|
||||
links = Link._by_url(url)
|
||||
links = Link._by_url(url,None)
|
||||
#find the one with the highest score
|
||||
l = max(links, key = lambda x: x._score)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user