mirror of
https://github.com/NicolasConstant/sengi
synced 2025-01-03 12:09:18 +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[];
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user