mirror of
https://github.com/ihabunek/toot.git
synced 2024-06-30 06:35:24 +00: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()
|
self.loop.screen.clear()
|
||||||
|
|
||||||
def show_links(self, status):
|
def show_links(self, status):
|
||||||
links = parse_content_links(status.data["content"]) if status else []
|
links = parse_content_links(status.original.data["content"]) if status else []
|
||||||
post_attachments = status.data["media_attachments"] or []
|
post_attachments = status.original.data["media_attachments"] or []
|
||||||
reblog_attachments = (status.data["reblog"]["media_attachments"] if status.data["reblog"] else None) or []
|
reblog_attachments = (status.data["reblog"]["media_attachments"] if status.data["reblog"] else None) or []
|
||||||
|
|
||||||
for a in post_attachments + reblog_attachments:
|
for a in post_attachments + reblog_attachments:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user