show rules on the login screen (#2746)
* show rules on the login screen * fix code formatting * fix code formatting * fix tests
This commit is contained in:
parent
3fb1173d3f
commit
8e9b356074
10 changed files with 152 additions and 8 deletions
|
|
@ -33,7 +33,8 @@ data class Instance(
|
|||
val configuration: InstanceConfiguration?,
|
||||
@SerializedName("max_media_attachments") val maxMediaAttachments: Int?,
|
||||
val pleroma: PleromaConfiguration?,
|
||||
@SerializedName("upload_limit") val uploadLimit: Int?
|
||||
@SerializedName("upload_limit") val uploadLimit: Int?,
|
||||
val rules: List<InstanceRules>?
|
||||
) {
|
||||
override fun hashCode(): Int {
|
||||
return uri.hashCode()
|
||||
|
|
@ -90,3 +91,8 @@ data class PleromaFieldLimits(
|
|||
@SerializedName("name_length") val nameLength: Int?,
|
||||
@SerializedName("value_length") val valueLength: Int?
|
||||
)
|
||||
|
||||
data class InstanceRules(
|
||||
val id: String,
|
||||
val text: String
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue