CommenTree: Stop storing link._id

This commit is contained in:
Brian Simpson
2016-01-08 08:57:35 -08:00
parent f3a3824073
commit bfd421bd9e

View File

@@ -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