From 33666aa7fd77c1d8ac822dc32a8d0b77e05abd9a Mon Sep 17 00:00:00 2001 From: Logan Hanks Date: Fri, 26 Oct 2012 15:53:42 -0700 Subject: [PATCH] Pass link in a list to changed() to stay Wrapped-safe. --- r2/r2/lib/comment_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r2/r2/lib/comment_tree.py b/r2/r2/lib/comment_tree.py index 76d41398a..b5d875a6c 100755 --- a/r2/r2/lib/comment_tree.py +++ b/r2/r2/lib/comment_tree.py @@ -96,7 +96,7 @@ def delete_comment(comment): cache = get_comment_tree(link) cache.delete_comment(comment, link) from r2.lib.db.queries import changed - changed(link) + changed([link]) def _comment_sorter_from_cids(cids, sort): comments = Comment._byID(cids, data = False, return_dict = False) @@ -191,7 +191,7 @@ def get_comment_tree(link, _update=False): # the tree rebuild updated the link's comment count, so schedule it for # search reindexing from r2.lib.db.queries import changed - changed(link) + changed([link]) return cache # message conversation functions