summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-12 07:03:44 +0100
committerdefault <nobody@localhost>2024-03-12 07:03:44 +0100
commit05fc062cb3e1b65641641c1ec9e88e08f6849dcd (patch)
treee0c5fe256b739686a51fb49f7e0ecc0a5a54bd1a /mastoapi.c
parenta0377b662da0f104d51f122efdb23962239c9b28 (diff)
Some formatting tweaks.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 416f96c..e14fc47 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -359,9 +359,9 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
}
}
- /* no code?
- I'm not sure of the impacts of this right now, but Subway Tooter does not
- provide a code so one must be generated */
+ /* no code?
+ I'm not sure of the impacts of this right now, but Subway Tooter does not
+ provide a code so one must be generated */
if (xs_is_null(code)){
code = random_str();
}
@@ -1716,8 +1716,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
else
if (strcmp(cmd, "/v2/filters") == 0) { /** **/
/* snac will never have filters
- * but still, without a v2 endpoint a short delay is introduced
- * in some apps */
+ * but still, without a v2 endpoint a short delay is introduced
+ * in some apps */
*body = xs_dup("[]");
*ctype = "application/json";
status = 200;
@@ -2115,7 +2115,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
}
else if (i_ctype && xs_startswith(i_ctype, "application/x-www-form-urlencoded"))
{
- // Some apps send form data instead of json so we should cater for those
+ // Some apps send form data instead of json so we should cater for those
if (!xs_is_null(payload)) {
xs *upl = xs_url_dec(payload);
args = xs_url_vars(upl);