update toot from server before displaying item

This commit is contained in:
Manuel Cortez 2022-11-12 15:26:34 -06:00
parent 64d5b7e684
commit de1d94e679
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -469,6 +469,8 @@ class BaseBuffer(base.Buffer):
def view_item(self):
toot = self.get_item()
# Update object so we can retrieve newer stats
toot = self.session.api.status(id=toot.id)
print(toot)
msg = messages.viewToot(toot, offset_hours=self.session.db["utc_offset"], item_url=self.get_item_url())