Display a ↷ in status detail window if status got reblogged
This commit is contained in:
parent
f1c8465e63
commit
066589bf53
|
@ -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()
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue