summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-04-11 21:11:33 +0200
committerGravatar default2023-04-11 21:11:33 +0200
commit889f3192dd92a5f599bc5f14bd5b9d5e6a8dd8fc (patch)
tree29613696aadea9b6ff2d13c0d886c8288b063b63
parentAdded support for likes and boosts. (diff)
downloadsnac2-889f3192dd92a5f599bc5f14bd5b9d5e6a8dd8fc.tar.gz
snac2-889f3192dd92a5f599bc5f14bd5b9d5e6a8dd8fc.tar.xz
snac2-889f3192dd92a5f599bc5f14bd5b9d5e6a8dd8fc.zip
Commented out debugging messages.
-rw-r--r--mastoapi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 842b97f..a75a38e 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -169,10 +169,10 @@ int oauth_get_handler(const xs_dict *req, const char *q_path,
169 if (!xs_startswith(q_path, "/oauth/")) 169 if (!xs_startswith(q_path, "/oauth/"))
170 return 0; 170 return 0;
171 171
172 { 172/* {
173 xs *j = xs_json_dumps_pp(req, 4); 173 xs *j = xs_json_dumps_pp(req, 4);
174 printf("oauth get:\n%s\n", j); 174 printf("oauth get:\n%s\n", j);
175 } 175 }*/
176 176
177 int status = 404; 177 int status = 404;
178 xs_dict *msg = xs_dict_get(req, "q_vars"); 178 xs_dict *msg = xs_dict_get(req, "q_vars");
@@ -221,10 +221,10 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
221 if (!xs_startswith(q_path, "/oauth/")) 221 if (!xs_startswith(q_path, "/oauth/"))
222 return 0; 222 return 0;
223 223
224 { 224/* {
225 xs *j = xs_json_dumps_pp(req, 4); 225 xs *j = xs_json_dumps_pp(req, 4);
226 printf("oauth post:\n%s\n", j); 226 printf("oauth post:\n%s\n", j);
227 } 227 }*/
228 228
229 int status = 404; 229 int status = 404;
230 xs_dict *msg = xs_dict_get(req, "p_vars"); 230 xs_dict *msg = xs_dict_get(req, "p_vars");
@@ -949,10 +949,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
949 return 0; 949 return 0;
950 950
951 srv_debug(0, xs_fmt("mastoapi_post_handler %s", q_path)); 951 srv_debug(0, xs_fmt("mastoapi_post_handler %s", q_path));
952 { 952/* {
953 xs *j = xs_json_dumps_pp(req, 4); 953 xs *j = xs_json_dumps_pp(req, 4);
954 printf("mastoapi post:\n%s\n", j); 954 printf("mastoapi post:\n%s\n", j);
955 } 955 }*/
956 956
957 int status = 404; 957 int status = 404;
958 xs *args = NULL; 958 xs *args = NULL;
@@ -966,10 +966,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
966 if (args == NULL) 966 if (args == NULL)
967 return 400; 967 return 400;
968 968
969 { 969/* {
970 xs *j = xs_json_dumps_pp(args, 4); 970 xs *j = xs_json_dumps_pp(args, 4);
971 printf("%s\n", j); 971 printf("%s\n", j);
972 } 972 }*/
973 973
974 xs *cmd = xs_replace(q_path, "/api/v1", ""); 974 xs *cmd = xs_replace(q_path, "/api/v1", "");
975 975