From 088a9acf72c22df8600ab6cf79c5818938412031 Mon Sep 17 00:00:00 2001 From: lint <47455468+lint@users.noreply.github.com> Date: Sat, 24 Oct 2020 19:13:41 -0400 Subject: [PATCH] Reddit 2020.40.0 support --- tweak/Reddit.xm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tweak/Reddit.xm b/tweak/Reddit.xm index da59bd6..325489c 100755 --- a/tweak/Reddit.xm +++ b/tweak/Reddit.xm @@ -179,7 +179,10 @@ int secondVersionPart = 0; [comment setAuthor:author]; [comment setBodyText:body]; [comment setBodyRichTextAttributed:bodyMutableAttributedText]; - [comment setBodyAttributedText:bodyMutableAttributedText]; + + if (secondVersionPart <= 39) { + [comment setBodyAttributedText:bodyMutableAttributedText]; + } [[commentTreeNode commentTreeHeaderNode] updateContentViewsForData:comment];