From 9f7fd29f096cc7392acd19c10b3a25cbfebe8412 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 22 Jul 2025 00:39:03 +0530 Subject: [PATCH] fix: add missing check for `userIsAuthor` Fixes #903 --- .../dev/msfjarvis/claw/common/comments/CommentEntry.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt index e68a04b5..279d55b5 100644 --- a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt +++ b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt @@ -80,7 +80,10 @@ internal fun CommentsHeader( Spacer(Modifier.height(4.dp)) } Submitter( - text = AnnotatedString("Submitted by ${post.submitter}"), + text = + AnnotatedString( + "${if (post.userIsAuthor) "Authored" else "Submitted"} by ${post.submitter}" + ), avatarUrl = "https://lobste.rs/avatars/${post.submitter}-100.png", contentDescription = "User avatar for ${post.submitter}", modifier = Modifier.clickable { openUserProfile(post.submitter) },