Example #1
0
 def is_dismissable(self, viewer):
     return is_dismissable(self.comment, viewer)
Example #2
0
 def item_is_dismissable(item):
     if item['type'] == 'promotion' and item['username'].lower(
     ) == 'canvas':
         return False
     return item['type'] != 'sticky_thread' and is_dismissable(
         item['comment'], user)
Example #3
0
 def item_is_dismissable(item):
     if item['type'] == 'promotion' and item['username'].lower() == 'canvas':
         return False
     return item['type'] != 'sticky_thread' and is_dismissable(item['comment'], user)