feat: show "Authored by" on posts when applicable

This commit is contained in:
Harsh Shandilya 2024-06-26 21:20:52 +05:30
parent 4ebb99bf7d
commit b132410282
6 changed files with 18 additions and 1 deletions

View file

@ -29,5 +29,6 @@ class LobstersPost(
val commentCount: Int,
val commentsUrl: String,
@SerialName("submitter_user") val submitter: String,
@SerialName("user_is_author") val userIsAuthor: Boolean,
val tags: List<String>,
)

View file

@ -29,6 +29,7 @@ data class UIPost(
val comments: List<Comment> = emptyList(),
val isSaved: Boolean = false,
val isRead: Boolean = false,
val userIsAuthor: Boolean = false,
) {
@KonvertFrom(
value = SavedPost::class,