From d50032b8cc649c8049be598ee7364d970f6e3e78 Mon Sep 17 00:00:00 2001 From: shannon Date: Tue, 11 Feb 2025 09:01:35 -0500 Subject: [PATCH] Remove link styling from inline post previews The links are not tappable in this context. Also, remove default text size so that displaying views can control that. Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification --- .../NotificationRowView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift b/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift index 8fbfaf511..e3e2432fc 100644 --- a/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift +++ b/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift @@ -637,7 +637,12 @@ func boldedNameStringComponent(_ name: String) -> AttributedString { return nameComponent } -let metaTextForHtmlToAttributedStringConversion = MetaText() +let metaTextForHtmlToAttributedStringConversion = { + let meta = MetaText() + meta.textAttributes = [:] + meta.linkAttributes = [:] + return meta +}() func attributedString( fromHtml html: String, emojis: [MastodonContent.Shortcode: String] ) -> AttributedString {