use 'me' instead of 'user' consistently

This commit is contained in:
2025-05-20 14:28:23 +03:00
parent 82b25946a0
commit 3bd474d7fe
9 changed files with 23 additions and 23 deletions

View File

@ -23,6 +23,7 @@ app:get("thread_create", "/create", function(self)
end
self.all_topics = all_topics
self.page_title = "creating thread"
self.me = user
return {render = "threads.create"}
end)
@ -90,7 +91,7 @@ app:get("thread", "/:slug", function(self)
LIMIT ? OFFSET ?
]], thread.id, POSTS_PER_PAGE, (self.page - 1) * POSTS_PER_PAGE)
self.topic = Topics:find(thread.topic_id)
self.user = util.get_logged_in_user_or_transient(self)
self.me = util.get_logged_in_user_or_transient(self)
self.posts = posts
self.page_title = thread.title