From 4102a6a7ac7ab7c651fe0b03358148e8d15418cc Mon Sep 17 00:00:00 2001 From: violette p. Date: Tue, 9 Dec 2025 04:58:13 +0100 Subject: make webpush use our notification server vkey instead of a random, ill-formated key (necessary for some client notifications, such as moshidon) --- mastoapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mastoapi.c') diff --git a/mastoapi.c b/mastoapi.c index acb95a0..9aa29d8 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -3044,7 +3044,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, xs *app = xs_dict_new(); xs *id = xs_replace_i(tid(0), ".", ""); xs *csec = random_str(); - xs *vkey = random_str(); + char *vkey = (char *)xs_dict_get(srv_config, "vkey"); + if (vkey == NULL) + vkey = random_str(); + xs *cid = NULL; /* pick a non-existent random cid */ -- cgit v1.2.3