use infobox to signal topic locked

This commit is contained in:
2025-05-23 15:28:09 +03:00
parent 1038e8ea1e
commit d70b27cda0
6 changed files with 141 additions and 50 deletions

View File

@ -37,6 +37,9 @@ app:post("thread_create", "/create", function(self)
if not topic then
return {redirect_to = self:url_for("topics")}
end
if util.is_topic_locked(topic) then
return {redirect_to = self:url_for("topics")}
end
local title = lapis_util.trim(self.params.title)
local time = os.time()