mirror of
https://github.com/ihabunek/toot
synced 2024-12-25 00:20:55 +01:00
Properly reference status.original when enumerating status links
Fixes #322
This commit is contained in:
parent
9d51546be3
commit
30792a0cab
@ -390,8 +390,8 @@ class TUI(urwid.Frame):
|
||||
self.loop.screen.clear()
|
||||
|
||||
def show_links(self, status):
|
||||
links = parse_content_links(status.data["content"]) if status else []
|
||||
post_attachments = status.data["media_attachments"] or []
|
||||
links = parse_content_links(status.original.data["content"]) if status else []
|
||||
post_attachments = status.original.data["media_attachments"] or []
|
||||
reblog_attachments = (status.data["reblog"]["media_attachments"] if status.data["reblog"] else None) or []
|
||||
|
||||
for a in post_attachments + reblog_attachments:
|
||||
|
Loading…
Reference in New Issue
Block a user