Properly reference status.original when enumerating status links

Fixes #322
This commit is contained in:
Dan Schwarz 2023-03-06 19:36:43 -05:00 committed by Ivan Habunek
parent 9d51546be3
commit 30792a0cab
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 2 additions and 2 deletions

View File

@ -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: