mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 23:27:04 +05:30
feat: show "Authored by" on posts when applicable
This commit is contained in:
parent
4ebb99bf7d
commit
b132410282
6 changed files with 18 additions and 1 deletions
|
@ -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>,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue