diff --git a/src/app/services/models/mastodon.interfaces.ts b/src/app/services/models/mastodon.interfaces.ts index 822a397e..860bf6a4 100644 --- a/src/app/services/models/mastodon.interfaces.ts +++ b/src/app/services/models/mastodon.interfaces.ts @@ -194,6 +194,33 @@ export interface Results { hashtags: string[]; } +export interface FilterKeyword { + id: string; + keyword: string; + whole_word: boolean; +} + +export interface FilterStatus { + id: string; + status_id: string; +} + +export interface Filter { + id: string; + title: string; + context: string[]; //home notifications public thread account + expires_at: string; + filter_action: string; //warn hide + keywords: FilterKeyword[]; + statuses: FilterStatus[]; +} + +export interface FilterResult { + filter: Filter; + keyword_matches: string[]; + status_matches: string[]; +} + export interface Status { id: string; uri: string; @@ -224,6 +251,7 @@ export interface Status { bookmarked: boolean; card: Card; poll: Poll; + filtered: FilterResult[]; pleroma: PleromaStatusInfo; }