pl-api: add feature definition for blur media filter
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -878,6 +878,8 @@ const getFeatures = (instance: Instance) => {
|
|||||||
v.software === MASTODON,
|
v.software === MASTODON,
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
filtersV2BlurAction: v.software === MASTODON && gte(v.version, '4.4.0'),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows setting the focal point of a media attachment.
|
* Allows setting the focal point of a media attachment.
|
||||||
* @see {@link https://docs.joinmastodon.org/methods/media/}
|
* @see {@link https://docs.joinmastodon.org/methods/media/}
|
||||||
|
|||||||
@ -36,7 +36,7 @@ type FilterContext = 'home' | 'notifications' | 'public' | 'thread' | 'account';
|
|||||||
interface CreateFilterParams {
|
interface CreateFilterParams {
|
||||||
title: string;
|
title: string;
|
||||||
context: Array<FilterContext>;
|
context: Array<FilterContext>;
|
||||||
filter_action?: 'warn' | 'hide';
|
filter_action?: 'warn' | 'hide' | 'blur';
|
||||||
expires_in?: number;
|
expires_in?: number;
|
||||||
keywords_attributes: Array<{
|
keywords_attributes: Array<{
|
||||||
keyword: string;
|
keyword: string;
|
||||||
@ -50,7 +50,7 @@ interface CreateFilterParams {
|
|||||||
interface UpdateFilterParams {
|
interface UpdateFilterParams {
|
||||||
title?: string;
|
title?: string;
|
||||||
context?: Array<FilterContext>;
|
context?: Array<FilterContext>;
|
||||||
filter_action?: 'warn' | 'hide';
|
filter_action?: 'warn' | 'hide' | 'blur';
|
||||||
expires_in?: number;
|
expires_in?: number;
|
||||||
keywords_attributes?: Array<{
|
keywords_attributes?: Array<{
|
||||||
keyword: string;
|
keyword: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user