From 5bc4ae932e7e44f619a95a1c5d73d89bdb087c9f Mon Sep 17 00:00:00 2001 From: hkc Date: Wed, 2 Nov 2022 20:23:01 +0300 Subject: [PATCH] Added docs for the forgotten filter --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 4c77cb3..d297140 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,19 @@ Has a single property `options` that is a space-separated list of allowed visibility levels. Note that `direct` visibility is always ignored so cannot be used here. +#### `type = media` +Filter that allows only some media types to be posted. + +`valid_media` is a space-separated list of media types from Mastodon API +(`image`, `gifv`, `video`, `audio` or `unknown`). If your Fedi software has +support for other types, they also should work. + +`mode` option defines the mode of operation: it can be either `include`, +`exclude` or `only`. In case of `include`, filter will trigger when post +has media with that type, but others are allowed as well. `exclude` is the +opposite: if status has media with that type, filter won't trigger. `only` +allows statuses with either no media, or listed types only. + #### `type = combined` The most powerful filter 'cause it allows you to combine multiple filters using different operations.