aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/data.c b/data.c
index fd6c91f..c38a0b3 100644
--- a/data.c
+++ b/data.c
@@ -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--;