Indicate if status is a reply in left pane of curses ui

This commit is contained in:
Denis Laxalde 2019-01-07 10:12:05 +01:00 committed by Ivan Habunek
parent be8c0a7947
commit 4bc963a236
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
2 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,8 @@ class StatusListWindow:
self.pad.addstr(offset + 2, 14, acct, color)
else:
self.pad.addstr(offset + 1, 14, acct, color)
if status['in_reply_to_id'] is not None:
self.pad.addstr(offset + 1, width - 3, '', Color.CYAN)
date, time = status['created_at']
self.pad.addstr(offset + 1, 1, " " + date.ljust(12), color)

View File

@ -17,6 +17,7 @@ def parse_status(status):
'content': content,
'favourited': status.get('favourited'),
'id': status['id'],
'in_reply_to_id': _status.get('in_reply_to_id'),
'media_attachments': _status['media_attachments'],
'url': _status['url'],
'reblogged': status.get('reblogged'),