From 066589bf53ca82209c436af17fc2fe98113582a0 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Thu, 24 Jan 2019 10:15:15 +0100 Subject: [PATCH] =?UTF-8?q?Display=20a=20=E2=86=B7=20in=20status=20detail?= =?UTF-8?q?=20window=20if=20status=20got=20reblogged?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- toot/ui/app.py | 3 +++ toot/ui/parsers.py | 1 + 2 files changed, 4 insertions(+) diff --git a/toot/ui/app.py b/toot/ui/app.py index 871ae0a..69a8e3a 100644 --- a/toot/ui/app.py +++ b/toot/ui/app.py @@ -213,6 +213,9 @@ class StatusDetailWindow: acct = status['boosted_by']['acct'] yield "Boosted by @{}".format(acct), Color.GREEN + if status['reblogged']: + yield "↷", Color.CYAN + def draw(self, status): self.window.erase() self.window.box() diff --git a/toot/ui/parsers.py b/toot/ui/parsers.py index 32dd4df..e9d7a45 100644 --- a/toot/ui/parsers.py +++ b/toot/ui/parsers.py @@ -18,6 +18,7 @@ def parse_status(status): 'id': status['id'], 'media_attachments': _status['media_attachments'], 'url': _status['url'], + 'reblogged': status.get('reblogged'), 'spoiler_text': spoiler_text, 'sensitive': _status['sensitive'], 'show_sensitive': False,