Skip to content

Commit

Permalink
Merge pull request #1982 from pantasystem/feature/#1981/ff-visibility
Browse files Browse the repository at this point in the history
ffVisibilityの実装を行なった
  • Loading branch information
pantasystem authored Nov 22, 2023
2 parents 2368df3 + decab99 commit 56a4763
Show file tree
Hide file tree
Showing 9 changed files with 3,354 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ data class MastodonAccountDTO(
updatedAt = null,
isPublicReactions = false,
description = note,
ffVisibility = null,
),
related = related,
badgeRoles = emptyList(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ data class UserDTO(
val notifyState: String? = null,

@SerialName("badgeRoles")
val badgeRoles: List<BadgeRoleDTO>? = null
val badgeRoles: List<BadgeRoleDTO>? = null,

@SerialName("ffVisibility")
@Transient
val followFollowerVisibility: FollowFollowerVisibility? = null,
) : Serializable {

@kotlinx.serialization.Serializable
Expand Down Expand Up @@ -175,4 +179,9 @@ data class UserDTO(
@SerialName("displayOrder")
val displayOrder: Int? = null,
)

@kotlinx.serialization.Serializable
enum class FollowFollowerVisibility {
@SerialName("public") Public, @SerialName("followers") Followers, @SerialName("private") Private,
}
}
Loading

0 comments on commit 56a4763

Please sign in to comment.