From b933fd602b3ab882762db7fa1507cd3d2d8f90ba Mon Sep 17 00:00:00 2001 From: shannon Date: Fri, 14 Feb 2025 15:02:20 -0500 Subject: [PATCH] Update view after boosting or favoriting Fixes #1409 [REGRESSION] Favoriting and boosting from the home timeline doesn't always stick --- MastodonSDK/Sources/MastodonSDK/MastodonStatus.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MastodonSDK/Sources/MastodonSDK/MastodonStatus.swift b/MastodonSDK/Sources/MastodonSDK/MastodonStatus.swift index fe824a72b..533b18aba 100644 --- a/MastodonSDK/Sources/MastodonSDK/MastodonStatus.swift +++ b/MastodonSDK/Sources/MastodonSDK/MastodonStatus.swift @@ -129,7 +129,12 @@ extension MastodonStatus: Hashable { lhs.reblog?.poll == rhs.reblog?.poll && lhs.reblog?.entity.poll == rhs.reblog?.entity.poll && lhs.showDespiteContentWarning == rhs.showDespiteContentWarning && - lhs.reblog?.showDespiteContentWarning == rhs.reblog?.showDespiteContentWarning + lhs.reblog?.showDespiteContentWarning == rhs.reblog?.showDespiteContentWarning && + lhs.entity.reblogged == rhs.entity.reblogged && + lhs.entity.repliesCount == rhs.entity.repliesCount && + lhs.entity.favourited == rhs.entity.favourited && + lhs.entity.reblogsCount == rhs.entity.reblogsCount && + lhs.entity.favouritesCount == rhs.entity.favouritesCount } public func hash(into hasher: inout Hasher) {