From f04a2a1ee445cdfc52957bd5321781fb81527587 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Mon, 14 Jun 2021 10:22:08 +0200 Subject: [PATCH] fix reblog avatar (#2197) --- .../java/com/keylesspalace/tusky/viewdata/StatusViewData.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/viewdata/StatusViewData.kt b/app/src/main/java/com/keylesspalace/tusky/viewdata/StatusViewData.kt index d02569d4..c3bf1418 100644 --- a/app/src/main/java/com/keylesspalace/tusky/viewdata/StatusViewData.kt +++ b/app/src/main/java/com/keylesspalace/tusky/viewdata/StatusViewData.kt @@ -60,7 +60,11 @@ sealed class StatusViewData private constructor() { get() = status.actionableStatus val rebloggedAvatar: String? - get() = status.reblog?.account?.avatar + get() = if (status.reblog != null) { + status.account.avatar + } else { + null + } val rebloggingStatus: Status? get() = if (status.reblog != null) status else null