mirror of
https://github.com/NicolasConstant/sengi
synced 2025-01-20 12:48:30 +01:00
added filter params in status interface
This commit is contained in:
parent
bd75317417
commit
63b7c6fdf1
@ -194,6 +194,33 @@ export interface Results {
|
|||||||
hashtags: string[];
|
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 {
|
export interface Status {
|
||||||
id: string;
|
id: string;
|
||||||
uri: string;
|
uri: string;
|
||||||
@ -224,6 +251,7 @@ export interface Status {
|
|||||||
bookmarked: boolean;
|
bookmarked: boolean;
|
||||||
card: Card;
|
card: Card;
|
||||||
poll: Poll;
|
poll: Poll;
|
||||||
|
filtered: FilterResult[];
|
||||||
|
|
||||||
pleroma: PleromaStatusInfo;
|
pleroma: PleromaStatusInfo;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user