mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
dont precompute top_links page temporarily
This commit is contained in:
@@ -303,7 +303,7 @@ def new_link(link):
|
||||
results = all_queries(get_links, sr, ('hot', 'new', 'old'), ['all'])
|
||||
results.extend(all_queries(get_links, sr, ('top', 'controversial'), db_times.keys()))
|
||||
results.append(get_submitted(author, 'new', 'all'))
|
||||
results.append(get_links(sr, 'toplinks', 'all'))
|
||||
#results.append(get_links(sr, 'toplinks', 'all'))
|
||||
|
||||
if link._deleted:
|
||||
add_queries(results, delete_item = link)
|
||||
@@ -334,7 +334,7 @@ def new_vote(vote):
|
||||
sr = item.subreddit_slow
|
||||
results = all_queries(get_links, sr, ('hot', 'new'), ['all'])
|
||||
results.extend(all_queries(get_links, sr, ('top', 'controversial'), db_times.keys()))
|
||||
results.append(get_links(sr, 'toplinks', 'all'))
|
||||
#results.append(get_links(sr, 'toplinks', 'all'))
|
||||
add_queries(results)
|
||||
|
||||
#must update both because we don't know if it's a changed vote
|
||||
|
||||
@@ -360,7 +360,7 @@ ${unsafe(txt)}
|
||||
post_site: "${c.site.name if not c.default_sr else ''}",
|
||||
/* are we in an iframe */
|
||||
cnameframe: ${"true" if (c.cname and not c.authorized_cname) else "false"},
|
||||
/* this page's referer" */
|
||||
/* this page's referer */
|
||||
referer: "${request.referer or ""}",
|
||||
/* the user's voting hash */
|
||||
modhash: ${"'%s'" % c.modhash or "false"},
|
||||
|
||||
Reference in New Issue
Block a user