From c6a958540fee741d5412b87a565706c6bb8f19ea Mon Sep 17 00:00:00 2001 From: lint <47455468+lint@users.noreply.github.com> Date: Mon, 8 Feb 2021 14:15:04 -0500 Subject: [PATCH] Fix Reddit not showing author on undeleted comments --- tweak/Reddit.xm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tweak/Reddit.xm b/tweak/Reddit.xm index 10f1dbf..2c58e6f 100755 --- a/tweak/Reddit.xm +++ b/tweak/Reddit.xm @@ -185,11 +185,14 @@ int secondVersionPart = 0; [comment setBodyText:body]; [comment setBodyRichTextAttributed:bodyMutableAttributedText]; - if (secondVersionPart <= 39) { + if ((firstVersionPart == 2020 && secondVersionPart <= 39) || firstVersionPart == 4) { [comment setBodyAttributedText:bodyMutableAttributedText]; } - [[commentTreeNode commentTreeHeaderNode] updateContentViewsForData:comment]; + CommentTreeHeaderNode *headerNode = [commentTreeNode commentTreeHeaderNode]; + + [headerNode updateContentViewsForData:comment]; + [headerNode configureNodes]; [bodyMutableAttributedText release]; }