From 497b87c9c3202ffc667b5621d4a5710f158984eb Mon Sep 17 00:00:00 2001 From: not manx Date: Sat, 30 May 2020 15:13:23 +0000 Subject: [PATCH] Not setting post_nrs correctly --- src/main.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.lisp b/src/main.lisp index 6feaf0e..f730b64 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -41,7 +41,8 @@ (henh:handle :post (api-get :uri "/api/get") @json (post_nrs board version) - (if (get-posts-p (cl-ppcre:split "," post_nrs) board) + (setf post_nrs (cl-ppcre:split "," post_nrs)) + (if (get-posts-p post_nrs board) (format nil "~a~%" (get-posts post_nrs board)) (t (format nil "{[\"~a\"]}~%" "bad"))))