summaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
authorGravatar James Seward2024-01-11 13:38:08 +0000
committerGravatar James Seward2024-01-11 13:38:08 +0000
commitc3fb6bab77f35be6cda261f257b8731d38e5265f (patch)
tree683be057b3f1b659648e0fdecaca59955fc785ab /snac.h
parentAdd missing fields to account verification (diff)
downloadsnac2-c3fb6bab77f35be6cda261f257b8731d38e5265f.tar.gz
snac2-c3fb6bab77f35be6cda261f257b8731d38e5265f.tar.xz
snac2-c3fb6bab77f35be6cda261f257b8731d38e5265f.zip
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.
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h2
1 files changed, 2 insertions, 0 deletions
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,
312 char **body, int *b_size, char **ctype); 312 char **body, int *b_size, char **ctype);
313int mastoapi_get_handler(const xs_dict *req, const char *q_path, 313int mastoapi_get_handler(const xs_dict *req, const char *q_path,
314 char **body, int *b_size, char **ctype); 314 char **body, int *b_size, char **ctype);
315int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
316 char **body, int *b_size, char **ctype);
315int mastoapi_post_handler(const xs_dict *req, const char *q_path, 317int mastoapi_post_handler(const xs_dict *req, const char *q_path,
316 const char *payload, int p_size, 318 const char *payload, int p_size,
317 char **body, int *b_size, char **ctype); 319 char **body, int *b_size, char **ctype);