toggle hidden comment with arrow left or h

This commit is contained in:
Tobin
2015-04-02 22:58:27 -05:00
parent 8f14be2797
commit 66bc9f5667
2 changed files with 9 additions and 1 deletions

View File

@@ -229,6 +229,10 @@ class SubmissionContent(BaseContent):
else:
raise ValueError('% type not recognized' % data['type'])
def is_hidden_comment(self, index):
data = self.get(index)
return data['type'] == 'HiddenComment'
class SubredditContent(BaseContent):