aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-08-05 08:53:50 -0500
committerColin Okay <colin@cicadas.surf>2022-08-05 08:53:50 -0500
commitb422877219fcfac73c7f1b6b33ff361984a0c045 (patch)
treedf791b44dac72fd65be46b8d0b030de4c49410b9
parentdcdbcb9d5581f4f5aaa75435e2d5eef94eea82dd (diff)
[modify] post to /oneliner returns json of new oneliner
-rw-r--r--src/main.lisp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.lisp b/src/main.lisp
index 1dc2e0f..3d081b4 100644
--- a/src/main.lisp
+++ b/src/main.lisp
@@ -502,7 +502,8 @@ startup process attempts to start as swank server on the provided port.
:name name
:runstyle (if runstyle (a:make-keyword runstyle) :auto)))))
(bt:with-lock-held (*newest-queue-lock*)
- (enqueue-qb *newest-queue* ol))))
+ (enqueue-qb *newest-queue* ol))
+ ol))
(defun unflag-oneliner (oneliner)
(db:with-transaction ()
@@ -783,11 +784,10 @@ have exceeded the invite limit."
(:auth t)
"Make a new [oneliner](#oneliner)."
(validate-new-oneliner-plist (lzb:request-body))
- (apply 'make-new-oneliner
- (api-contributor token)
- (lzb:request-body))
-
- "true")
+ (let ((ol (apply 'make-new-oneliner
+ (api-contributor token)
+ (lzb:request-body))))
+ (to-json ol)))
(defun admin-only ()
"The request requires an API access token. Only contributors with