fix: add missing check for userIsAuthor

Fixes #903
This commit is contained in:
Harsh Shandilya 2025-07-22 00:39:03 +05:30
parent 7487664ac2
commit 9f7fd29f09

View file

@ -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) },