Skip to content

Commit

Permalink
Add Identity to PostView (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV-GH authored Aug 6, 2024
1 parent ae597a0 commit 280c631
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import it.vercruysse.lemmyapi.dto.SubscribedType
import kotlinx.serialization.Serializable

import it.vercruysse.lemmyapi.CommonParcelize
import it.vercruysse.lemmyapi.Identity

@CommonParcelize
@Serializable
Expand All @@ -24,4 +25,7 @@ data class PostView(
val creator_blocked: Boolean,
val my_vote: Int = 0,
val unread_comments: Long,
) : DatatypeRoot
) : DatatypeRoot, Identity {
override val id: Long
get() = post.id
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ POM_DEVELOPER_URL=https://github.com/MV-GH

POM_ARTIFACT_ID=lemmy-api
GROUP=it.vercruysse.lemmyapi
VERSION_NAME=0.3.3-SNAPSHOT
VERSION_NAME=0.3.4-SNAPSHOT

0 comments on commit 280c631

Please sign in to comment.