From ff91c3f96334bf3e32521a3b617feff4f78414ef Mon Sep 17 00:00:00 2001 From: Andreas Date: Tue, 30 May 2023 11:15:29 +0200 Subject: [PATCH] Make Status.isPinned a non-null value (#220) See #192 for discussion of this change. Resolves "issue 1" of that discussion, other issue still open. --- bigbone/src/main/kotlin/social/bigbone/api/entity/Status.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bigbone/src/main/kotlin/social/bigbone/api/entity/Status.kt b/bigbone/src/main/kotlin/social/bigbone/api/entity/Status.kt index 35ddfedbb..3bf6a769b 100644 --- a/bigbone/src/main/kotlin/social/bigbone/api/entity/Status.kt +++ b/bigbone/src/main/kotlin/social/bigbone/api/entity/Status.kt @@ -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)