From 80a39e74893c42dbdfc703c5359d570914a04225 Mon Sep 17 00:00:00 2001 From: trisua Date: Mon, 4 Aug 2025 15:06:08 -0400 Subject: [PATCH] fix: posts without topic --- crates/app/src/public/html/communities/create_post.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/app/src/public/html/communities/create_post.lisp b/crates/app/src/public/html/communities/create_post.lisp index 6f83326..3d1b965 100644 --- a/crates/app/src/public/html/communities/create_post.lisp +++ b/crates/app/src/public/html/communities/create_post.lisp @@ -226,7 +226,7 @@ content: e.target.content.value, community: !is_selected_stack ? selected_community : \"0\", stack: is_selected_stack ? selected_community : \"0\", - topic: e.target.topic.selectedOptions[0].value, + topic: (e.target.topic || { selectedOptions: [{ value: \"0\" }] }).selectedOptions[0].value, poll: poll_data[1], title: e.target.title.value, }),