Fix create/update filter parameter

This commit is contained in:
AkiraFukushima 2021-05-09 21:12:09 +09:00
parent 3213158146
commit ef73240f52
No known key found for this signature in database
GPG key ID: B6E51BAC4DE1A957
4 changed files with 10 additions and 10 deletions

View file

@ -789,7 +789,7 @@ export default class Mastodon implements MegalodonInterface {
public async createFilter(
phrase: string,
context: Array<'home' | 'notifications' | 'public' | 'thread'>,
context: Array<string>,
options?: {
irreversible?: boolean
whole_word?: boolean
@ -827,7 +827,7 @@ export default class Mastodon implements MegalodonInterface {
public async updateFilter(
id: string,
phrase: string,
context: Array<'home' | 'notifications' | 'public' | 'thread'>,
context: Array<string>,
options?: {
irreversible?: boolean
whole_word?: boolean

View file

@ -454,7 +454,7 @@ export interface MegalodonInterface {
* POST /api/v1/filters
*
* @param phrase Text to be filtered.
* @param context Array of enumerable strings home, notifications, public, thread. At least one context must be specified.
* @param context Array of enumerable strings home, notifications, public, thread, account. At least one context must be specified.
* @param options.irreversible Should the server irreversibly drop matching entities from home and notifications?
* @param options.whole_word Consider word boundaries?
* @param options.expires_in ISO 8601 Datetime for when the filter expires.
@ -462,7 +462,7 @@ export interface MegalodonInterface {
*/
createFilter(
phrase: string,
context: Array<'home' | 'notifications' | 'public' | 'thread'>,
context: Array<string>,
options?: {
irreversible?: boolean
whole_word?: boolean
@ -474,7 +474,7 @@ export interface MegalodonInterface {
*
* @param id The filter ID.
* @param phrase Text to be filtered.
* @param context Array of enumerable strings home, notifications, public, thread. At least one context must be specified.
* @param context Array of enumerable strings home, notifications, public, thread, account. At least one context must be specified.
* @param options.irreversible Should the server irreversibly drop matching entities from home and notifications?
* @param options.whole_word Consider word boundaries?
* @param options.expires_in ISO 8601 Datetime for when the filter expires.
@ -483,7 +483,7 @@ export interface MegalodonInterface {
updateFilter(
id: string,
phrase: string,
context: Array<'home' | 'notifications' | 'public' | 'thread'>,
context: Array<string>,
options?: {
irreversible?: boolean
whole_word?: boolean

View file

@ -794,7 +794,7 @@ export default class Misskey implements MegalodonInterface {
public async createFilter(
_phrase: string,
_context: Array<'home' | 'notifications' | 'public' | 'thread'>,
_context: Array<string>,
_options?: {
irreversible?: boolean
whole_word?: boolean
@ -810,7 +810,7 @@ export default class Misskey implements MegalodonInterface {
public async updateFilter(
_id: string,
_phrase: string,
_context: Array<'home' | 'notifications' | 'public' | 'thread'>,
_context: Array<string>,
_options?: {
irreversible?: boolean
whole_word?: boolean

View file

@ -802,7 +802,7 @@ export default class Pleroma implements MegalodonInterface {
public async createFilter(
phrase: string,
context: Array<'home' | 'notifications' | 'public' | 'thread'>,
context: Array<string>,
options?: {
irreversible?: boolean
whole_word?: boolean
@ -840,7 +840,7 @@ export default class Pleroma implements MegalodonInterface {
public async updateFilter(
id: string,
phrase: string,
context: Array<'home' | 'notifications' | 'public' | 'thread'>,
context: Array<string>,
options?: {
irreversible?: boolean
whole_word?: boolean