diff options
| author | grunfink <grunfink@comam.es> | 2026-08-30 16:46:38 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-08-30 16:46:38 +0200 |
| commit | 8e521cce1f980edb6ce0bfd490e93e8ab5baa93a (patch) | |
| tree | b59611a830dfcdcef3e295748d4167a36d4b7c79 /data.c | |
| parent | 61ef7a86183d7d8f5f6a5fcd6d945b91dcb68526 (diff) | |
Added notification filter for Webmentions.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3593,6 +3593,7 @@ xs_list *notify_filter_list(snac *snac, xs_list *notifs, int skip, int show) int n_folreq_on = xs_is_true(xs_dict_get_def(n_filter, "folreqs", n_def)); int n_blocks_on = xs_is_true(xs_dict_get_def(n_filter, "blocks", n_def)); int n_polls_on = xs_is_true(xs_dict_get_def(n_filter, "polls", n_def)); + int n_webmen_on = xs_is_true(xs_dict_get_def(n_filter, "webmentions", n_def)); const xs_str *v; xs_list *flt = xs_list_new(); @@ -3633,6 +3634,8 @@ xs_list *notify_filter_list(snac *snac, xs_list *notifs, int skip, int show) continue; if (strcmp(type, "Announce") == 0 && !n_ann_on) continue; + if (strcmp(type, "Webmention") == 0 && !n_webmen_on) + continue; if (skip) { skip--; |