Merge pull request #34 from veer66/master - toot - Unnamed repository; edit this file 'description' to name the repository.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 3f6afaec5cc58fb8e0f5c8f829af6cfa8910d303
(DIR) parent 729498559d6b986793aefdbe499424762645cf1b
(HTM) Author: Ivan Habunek <ivan@habunek.com>
Date: Tue, 12 Dec 2017 11:09:31 +0100
Merge pull request #34 from veer66/master
Avoid displaying toot URL when it is None, in order to fix issue #33
Diffstat:
toot/app.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/toot/app.py b/toot/app.py
@@ -216,8 +216,9 @@ class TimelineApp:
window.addstr(y, 1, '-' * (text_width + 2))
y += 1
- window.addstr(y, 2, status['url'])
- y += 1
+ if status['url'] is not None:
+ window.addstr(y, 2, status['url'])
+ y += 1
if status['boosted_by']:
acct = status['boosted_by']['acct']