From 4b44007a471584a5b4244d72d655517502ff8732 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Thu, 12 Jan 2023 09:07:45 -0500 Subject: [PATCH] Fix accessibility label for posts with custom emoji --- .../Sources/MastodonUI/View/Content/StatusView+ViewModel.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift index b4430dd8e8..ed7c1b68cc 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift @@ -751,7 +751,7 @@ extension StatusView.ViewModel { } if isContentReveal { - strings.append(content?.string) + strings.append(statusView.contentMetaText.backedString) } return strings.compactMap { $0 }.joined(separator: ", ") @@ -769,6 +769,7 @@ extension StatusView.ViewModel { contentAccessibilityLabel .sink { contentAccessibilityLabel in statusView.spoilerOverlayView.accessibilityLabel = contentAccessibilityLabel + statusView.contentMetaText.textView.accessibilityLabel = contentAccessibilityLabel } .store(in: &disposeBag)