From 0858cd88a8d4dbc7cbcbd563d83b2261dda3fdd3 Mon Sep 17 00:00:00 2001 From: bleakgrey Date: Sat, 12 May 2018 13:35:03 +0300 Subject: [PATCH] Derp --- src/Widgets/StatusWidget.vala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Widgets/StatusWidget.vala b/src/Widgets/StatusWidget.vala index 9f0819f..1490ea4 100644 --- a/src/Widgets/StatusWidget.vala +++ b/src/Widgets/StatusWidget.vala @@ -188,8 +188,9 @@ public class Tootle.StatusWidget : Gtk.EventBox { } public void rebind () { - title_user.label = "%s".printf (status.get_formal ().account.display_name); - title_acct.label = "@" + status.account.acct; + var account_formal = status.get_formal ().account; + title_user.label = "%s".printf (account_formal.display_name); + title_acct.label = "@" + account_formal.acct; content_label.label = status.content; content_label.mentions = status.mentions; parse_date_iso8601 (status.created_at); @@ -210,7 +211,7 @@ public class Tootle.StatusWidget : Gtk.EventBox { reblog.tooltip_text = _("This post can't be boosted"); } - Tootle.network.load_avatar (status.get_formal ().account.avatar, this.avatar, this.avatar_size); + Tootle.network.load_avatar (account_formal.avatar, this.avatar, this.avatar_size); } public bool is_spoiler () {