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 e81e28c395.
This commit is contained in:
Harsh Shandilya 2025-02-14 04:51:11 +05:30
parent 833fcb616d
commit bff573ec10
2 changed files with 2 additions and 2 deletions

View file

@ -225,7 +225,7 @@ private fun CommentEntry(
commenterName = comment.user, commenterName = comment.user,
score = comment.score, score = comment.score,
createdAt = comment.createdAt, createdAt = comment.createdAt,
updatedAt = comment.lastEditedAt, updatedAt = comment.updatedAt,
nameColorOverride = nameColorOverride =
if (commentNode.isPostAuthor) MaterialTheme.colorScheme.tertiary else null, if (commentNode.isPostAuthor) MaterialTheme.colorScheme.tertiary else null,
), ),

View file

@ -22,7 +22,7 @@ class Comment(
val url: String, val url: String,
val score: Int, val score: Int,
@Serializable(with = JavaInstantSerializer::class) val createdAt: TemporalAccessor, @Serializable(with = JavaInstantSerializer::class) val createdAt: TemporalAccessor,
@Serializable(with = JavaInstantSerializer::class) val lastEditedAt: TemporalAccessor, @Serializable(with = JavaInstantSerializer::class) val updatedAt: TemporalAccessor,
val parentComment: String?, val parentComment: String?,
@SerialName("commenting_user") val user: String, @SerialName("commenting_user") val user: String,
) )