From c3fb6bab77f35be6cda261f257b8731d38e5265f Mon Sep 17 00:00:00 2001 From: James Seward Date: Thu, 11 Jan 2024 13:38:08 +0000 Subject: Support DELETE for Mastodon subscriptions While testing Mona, I noticed that after deleting my account entry for my snac server, Mona would repeatedly try to delete the subscription it thought it had created, resulting in many unhandled DELETE calls. This accepts the call and returns 200 for it, which makes Mona happy. --- snac.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'snac.h') diff --git a/snac.h b/snac.h index 5843c5a..e960d0d 100644 --- a/snac.h +++ b/snac.h @@ -312,6 +312,8 @@ int oauth_post_handler(const xs_dict *req, const char *q_path, char **body, int *b_size, char **ctype); int mastoapi_get_handler(const xs_dict *req, const char *q_path, char **body, int *b_size, char **ctype); +int mastoapi_delete_handler(const xs_dict *req, const char *q_path, + char **body, int *b_size, char **ctype); int mastoapi_post_handler(const xs_dict *req, const char *q_path, const char *payload, int p_size, char **body, int *b_size, char **ctype); -- cgit v1.2.3