mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 09:48:01 -05:00
Don't recalculate parents dict for zero-comment links.
This commit is contained in:
@@ -258,7 +258,7 @@ def link_comments_and_sort(link_id, sort):
|
||||
% link_id)
|
||||
parents = {}
|
||||
|
||||
if not parents:
|
||||
if not parents and len(cids) > 0:
|
||||
with g.make_lock(lock_key(link_id)):
|
||||
# reload from the cache so the sorter and parents are
|
||||
# maximally consistent
|
||||
|
||||
Reference in New Issue
Block a user