Interface Filter

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

interface Filter {
    context: mastodon.v1.FilterContext[];
    expiresAt?: null | string;
    id: string;
    irreversible: boolean;
    phrase: string;
    wholeWord: boolean;
}

Properties

The contexts in which the filter should be applied.

expiresAt?: null | string

When the filter should no longer be applied

id: string

The ID of the filter in the database.

irreversible: boolean

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

phrase: string

The text to be filtered.

wholeWord: boolean

Should the filter consider word boundaries?