Respect filter expiration date when applying filters (#2661)
* Respect filter expiration date when applying filters. #2578 * Fix typing for filter `expires_in` api points
This commit is contained in:
parent
be4645ec38
commit
b21def5041
5 changed files with 45 additions and 7 deletions
|
|
@ -16,12 +16,13 @@
|
|||
package com.keylesspalace.tusky.entity
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import java.util.Date
|
||||
|
||||
data class Filter(
|
||||
val id: String,
|
||||
val phrase: String,
|
||||
val context: List<String>,
|
||||
@SerializedName("expires_at") val expiresAt: String?,
|
||||
@SerializedName("expires_at") val expiresAt: Date?,
|
||||
val irreversible: Boolean,
|
||||
@SerializedName("whole_word") val wholeWord: Boolean
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue