Skip to content

Commit

Permalink
Make Status.isPinned a non-null value (#220)
Browse files Browse the repository at this point in the history
See #192 for discussion of this change. Resolves "issue 1" of that discussion, other issue still open.
  • Loading branch information
bocops committed May 30, 2023
1 parent 2e79e0c commit ff91c3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bigbone/src/main/kotlin/social/bigbone/api/entity/Status.kt
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,11 @@ data class Status(
val isBookmarked: Boolean = false,

/**
* If the current token has an authorized user: Have you pinned this status? Only appears if the status is pinnable. (optional)
* If the current token has an authorized user: Have you pinned this status? A value of false does not imply that
* this status is in fact pinnable.
*/
@SerializedName("pinned")
val isPinned: Boolean? = null,
val isPinned: Boolean = false,

/**
* If the current token has an authorized user: The filter and keywords that matched this status. (optional)
Expand Down

0 comments on commit ff91c3f

Please sign in to comment.