Skip to content

Commit

Permalink
Missed a few spots when I changed the args in some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
karai17 committed Jan 27, 2016
1 parent 00bc8d9 commit 467f099
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions controllers/archive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ return function(self)

-- Get stats
for _, thread in ipairs(self.threads) do
thread.op = Posts:get_thread_op(self.board.id, thread.id)
thread.replies = Posts:count_posts(self.board.id, thread.id) - 1
thread.op = Posts:get_thread_op(thread.id)
thread.replies = Posts:count_posts(thread.id) - 1
thread.url = self.thread_url .. thread.op.post_id

-- Process name
Expand Down
2 changes: 1 addition & 1 deletion controllers/thread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ return {
self.csrf_token = csrf.generate_token(self)

-- Determine if we allow a user to upload a file
self.num_files = Posts:count_files(self.board.id, self.thread.id)
self.num_files = Posts:count_files(self.thread.id)

-- Get posts
self.posts = Posts:get_posts_by_thread(self.thread.id)
Expand Down
4 changes: 2 additions & 2 deletions utils/request_processor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function process.create_thread(params, session, board)
end

function process.create_post(params, session, board, thread)
local posts = Posts:count_posts(board.id, thread.id)
local files = Posts:count_files(board.id, thread.id)
local posts = Posts:count_posts(thread.id)
local files = Posts:count_files(thread.id)

-- Prepare data for entry
local _, err = Posts:prepare_post(
Expand Down
2 changes: 1 addition & 1 deletion utils/text_formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function formatter.quote(text, request, board, post)
local thread = Threads:get_thread(p.thread_id)
if not thread then return false end

local op = Posts:get_thread_op(board.id, thread.id)
local op = Posts:get_thread_op(thread.id)
return
request.boards_url .. board.short_name .. "/thread/" .. op.post_id,
op
Expand Down

0 comments on commit 467f099

Please sign in to comment.