iceshrimp/packages/backend/src/server/api/mastodon/entities/filter.ts
Laura Hausmann 03cdf4ec4a
[mastodon-client] Add basic support for filters
Currently you have to configure these in the web ui, but this will eventually be implemented as well
2023-11-27 21:41:09 +01:00

14 lines
382 B
TypeScript

namespace MastodonEntity {
export type Filter = {
id: string;
title: string;
context: Array<FilterContext>;
expires_at: string | null;
filter_action: 'warn' | 'hide';
keywords: FilterKeyword[];
statuses: FilterStatus[];
};
export type FilterContext = 'home' | 'notifications' | 'public' | 'thread' | 'account';
}