From bfd421bd9e9ae6885c3933ebcea16cdaeddfca58 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Fri, 8 Jan 2016 08:57:35 -0800 Subject: [PATCH] CommenTree: Stop storing link._id --- r2/r2/models/comment_tree.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/r2/r2/models/comment_tree.py b/r2/r2/models/comment_tree.py index ff48d5de6..36c653041 100644 --- a/r2/r2/models/comment_tree.py +++ b/r2/r2/models/comment_tree.py @@ -179,7 +179,7 @@ class CommentTreeStorageV1(CommentTreeStorageBase): def add_comments(cls, tree, comments): with cls.mutation_context(tree.link): CommentTreeStorageBase.add_comments(tree, comments) - key = cls._comments_key(tree.link_id) + key = cls._comments_key(tree.link._id) g.permacache.set(key, tree.tree) @@ -211,7 +211,6 @@ class CommentTree: def __init__(self, link, cids, tree, depth, parents): self.link = link - self.link_id = link._id self.cids = cids self.tree = tree self.depth = depth