From bff573ec10057457d75308e090b14d0a482b6bb5 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 14 Feb 2025 04:51:11 +0530 Subject: [PATCH] Partially revert "fix(api): refresh post details golden snapshot" There's a more complete patch available from the person who filed the issue This partially reverts commit e81e28c395be894ad3ad1fc0f9bde6db2b124d89. --- .../dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt | 2 +- model/src/main/kotlin/dev/msfjarvis/claw/model/Comment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt index 56463dcb..58d280cf 100644 --- a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt +++ b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt @@ -225,7 +225,7 @@ private fun CommentEntry( commenterName = comment.user, score = comment.score, createdAt = comment.createdAt, - updatedAt = comment.lastEditedAt, + updatedAt = comment.updatedAt, nameColorOverride = if (commentNode.isPostAuthor) MaterialTheme.colorScheme.tertiary else null, ), diff --git a/model/src/main/kotlin/dev/msfjarvis/claw/model/Comment.kt b/model/src/main/kotlin/dev/msfjarvis/claw/model/Comment.kt index 2fe4bf26..54af384e 100644 --- a/model/src/main/kotlin/dev/msfjarvis/claw/model/Comment.kt +++ b/model/src/main/kotlin/dev/msfjarvis/claw/model/Comment.kt @@ -22,7 +22,7 @@ class Comment( val url: String, val score: Int, @Serializable(with = JavaInstantSerializer::class) val createdAt: TemporalAccessor, - @Serializable(with = JavaInstantSerializer::class) val lastEditedAt: TemporalAccessor, + @Serializable(with = JavaInstantSerializer::class) val updatedAt: TemporalAccessor, val parentComment: String?, @SerialName("commenting_user") val user: String, )