summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorPaul Wilde <psw@wildefedi01.wildenet.wilde.cloud>2024-01-28 21:14:46 +0000
committerPaul Wilde <psw@wildefedi01.wildenet.wilde.cloud>2024-01-28 21:14:46 +0000
commitd7978621ed3756dd3d021631d7f735ef0d8f39d4 (patch)
treec07e3d4badfed27fb6ac4f8a23687ec435300092 /mastoapi.c
parentf0c46a7c1f6a6ac8273197ec79617f6974a1bc7b (diff)
formatting
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mastoapi.c b/mastoapi.c
index abeea94..efcdae8 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -362,9 +362,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 */
- if (xs_is_null(code)){
- code = random_str();
- }
+ if (xs_is_null(code)){
+ code = random_str();
+ }
if (gtype && code && cid && csec && ruri) {
xs *app = app_get(cid);