use infobox to signal topic locked
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user