Filter

@Serializable
data class Filter(val filterId: String, val phrase: String, val context: List<FilterContext>, val isIrreversible: Boolean, val wholeWord: Boolean, val expiresAt: Instant?)

Represents a user-defined filter for determining which statuses should not be shown to the user.

Constructors

Link copied to clipboard
constructor(filterId: String, phrase: String, context: List<FilterContext>, isIrreversible: Boolean, wholeWord: Boolean, expiresAt: Instant?)

Properties

Link copied to clipboard

The contexts in which the filter should be applied.

Link copied to clipboard
val expiresAt: Instant?

Time at which the filter should no longer be applied.

Link copied to clipboard
Link copied to clipboard

Should matching entities in home and notifications be dropped by the server?

Link copied to clipboard

The text to be filtered.

Link copied to clipboard

Should the filter consider word boundaries?