diff --git a/web/views/board.templ b/web/views/board.templ
index d2dcf23..5c7c2ea 100644
--- a/web/views/board.templ
+++ b/web/views/board.templ
@@ -16,6 +16,8 @@ templ NewThreadForm(board database.Board) {
_="on htmx:afterRequest
hide me
then show #newThreadBtn
+ then set #newPostBody.value to ''
+ then set #newPostFile.value to ''
then trigger refreshThreads on body"
>
diff --git a/web/views/thread.templ b/web/views/thread.templ
index e4784ce..2800695 100644
--- a/web/views/thread.templ
+++ b/web/views/thread.templ
@@ -39,6 +39,7 @@ templ Thread(board database.Board, thread database.Thread, posts []database.Post
board.Slug, thread.Id) }
_="on htmx:afterRequest
set #newPostBody.value to ''
+ then set #newPostFile.value to ''
then trigger refreshPosts on body"
>
@@ -72,10 +73,9 @@ templ Thread(board database.Board, thread database.Thread, posts []database.Post
{ posts[0].Body }
-
+
+ @ThreadPosts(posts[1:])
+
}
}