def is_dismissable(self, viewer): return is_dismissable(self.comment, viewer)
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)
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)