Add '[S]' to submitter username on comments

This commit is contained in:
Corey McCandless
2017-08-18 13:23:15 -05:00
parent 2c6b47dc13
commit e69340a666

View File

@@ -262,7 +262,10 @@ class SubmissionPage(Page):
attr = curses.A_BOLD
attr |= (Color.BLUE if not data['is_author'] else Color.GREEN)
self.term.add_line(win, '{author} '.format(**data), row, 1, attr)
text = '{author} '.format(**data)
if data['is_author']:
text += '[S] '
self.term.add_line(win, text, row, 1, attr)
if data['flair']:
attr = curses.A_BOLD | Color.YELLOW