diff options
author | Lorenz Diener <[email protected]> | 2018-07-30 20:25:25 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-07-30 20:25:25 +0200 |
commit | 087fb249dad981be4dfbfea13a842bfcc1cd8fd7 (patch) | |
tree | 5226e6a544353fedac0c8ae133188a7d9d510f8a /mastodon | |
parent | 8feed51075af332c45e6aacd106550eff2233675 (diff) | |
download | mastodon.py-087fb249dad981be4dfbfea13a842bfcc1cd8fd7.tar.gz |
Fix tests
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 7 |
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. |