aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index bb7ef31..f524c61 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1497,15 +1497,14 @@ class Mastodon:
1497 # Writing data: Keyword filters 1497 # Writing data: Keyword filters
1498 ### 1498 ###
1499 @api_version("2.4.3", "2.4.3", __DICT_VERSION_FILTER) 1499 @api_version("2.4.3", "2.4.3", __DICT_VERSION_FILTER)
1500 def filter_create(phrase, context, irreversible = True, whole_word = True, expires_in = None): 1500 def filter_create(phrase, context, irreversible = False, whole_word = True, expires_in = None):
1501 """ 1501 """
1502 Creates a new keyword filter. `phrase` is the phrase that should be 1502 Creates a new keyword filter. `phrase` is the phrase that should be
1503 filtered out, `context` specifies from where to filter the keywords. 1503 filtered out, `context` specifies from where to filter the keywords.
1504 Valid contexts are 'home', 'notifications', 'public' and 'thread'. 1504 Valid contexts are 'home', 'notifications', 'public' and 'thread'.
1505 1505
1506 Set `irreversible` to False if you want the filter to merely be applied 1506 Set `irreversible` to True if you want the filter to just delete statuses
1507 at client side. Note that Mastodon.py doesn't do any client-side 1507 server side. This works only for the 'home' and 'notifications' contexts.
1508 filtering for you.
1509 1508
1510 Set `whole_word` to False if you want to allow filter matches to 1509 Set `whole_word` to False if you want to allow filter matches to
1511 start or end within a word, not only at word boundaries. 1510 start or end within a word, not only at word boundaries.
Powered by cgit v1.2.3 (git 2.41.0)