1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Display a ↷ in status detail window if status got reblogged

This commit is contained in:
Denis Laxalde 2019-01-24 10:15:15 +01:00 committed by Ivan Habunek
parent f1c8465e63
commit 066589bf53
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
2 changed files with 4 additions and 0 deletions

View File

@ -213,6 +213,9 @@ class StatusDetailWindow:
acct = status['boosted_by']['acct'] acct = status['boosted_by']['acct']
yield "Boosted by @{}".format(acct), Color.GREEN yield "Boosted by @{}".format(acct), Color.GREEN
if status['reblogged']:
yield "", Color.CYAN
def draw(self, status): def draw(self, status):
self.window.erase() self.window.erase()
self.window.box() self.window.box()

View File

@ -18,6 +18,7 @@ def parse_status(status):
'id': status['id'], 'id': status['id'],
'media_attachments': _status['media_attachments'], 'media_attachments': _status['media_attachments'],
'url': _status['url'], 'url': _status['url'],
'reblogged': status.get('reblogged'),
'spoiler_text': spoiler_text, 'spoiler_text': spoiler_text,
'sensitive': _status['sensitive'], 'sensitive': _status['sensitive'],
'show_sensitive': False, 'show_sensitive': False,