1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-23 06:25:26 +00:00

Wrap URLs if needed

This commit is contained in:
Ivan Habunek 2018-01-13 23:06:24 +01:00
parent e829ce2714
commit d8fd8d0d56
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -191,8 +191,11 @@ class StatusDetailWindow:
yield line
def footer_lines(self, status):
text_width = self.width - 4
if status['url'] is not None:
yield status['url']
for line in wrap(status['url'], text_width):
yield line
if status['boosted_by']:
acct = status['boosted_by']['acct']