moderation: fixed moving a post to another topic

This commit is contained in:
Darks 2023-06-06 19:52:46 +02:00
parent e7d28570c7
commit b9becbf21f
Signed by: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 3 additions and 1 deletions

View File

@ -166,7 +166,9 @@ def move_post(postid):
move_form = MovePost(prefix="move_")
search_form = SearchThread(prefix="thread_")
keyword = search_form.name.data if search_form.validate_on_submit() else ""
# There is a bug with validate_on_submit
keyword = search_form.name.data if search_form.search.data else ""
# Get 10 last corresponding threads
# TODO: add support for every MainPost