mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 16:04:22 -05:00
remove unused var
This commit is contained in:
parent
f79f0e740a
commit
7cdf1266ad
1 changed files with 1 additions and 3 deletions
|
@ -3,7 +3,6 @@ require_dependency 'sql_builder'
|
||||||
class Admin::FlagsController < Admin::AdminController
|
class Admin::FlagsController < Admin::AdminController
|
||||||
def index
|
def index
|
||||||
|
|
||||||
|
|
||||||
sql = SqlBuilder.new "select p.id, t.title, p.cooked, p.user_id, p.topic_id, p.post_number, p.hidden, t.visible topic_visible
|
sql = SqlBuilder.new "select p.id, t.title, p.cooked, p.user_id, p.topic_id, p.post_number, p.hidden, t.visible topic_visible
|
||||||
from posts p
|
from posts p
|
||||||
join topics t on t.id = topic_id
|
join topics t on t.id = topic_id
|
||||||
|
@ -72,7 +71,7 @@ from post_actions a
|
||||||
sql.where('deleted_at is null')
|
sql.where('deleted_at is null')
|
||||||
end
|
end
|
||||||
|
|
||||||
actions = sql.exec.each do |action|
|
sql.exec.each do |action|
|
||||||
p = map[action["post_id"]]
|
p = map[action["post_id"]]
|
||||||
p[:post_actions] ||= []
|
p[:post_actions] ||= []
|
||||||
p[:post_actions] << action
|
p[:post_actions] << action
|
||||||
|
@ -92,7 +91,6 @@ where id in (?)"
|
||||||
}
|
}
|
||||||
|
|
||||||
render json: MultiJson.dump({users: users, posts: posts})
|
render json: MultiJson.dump({users: users, posts: posts})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def clear
|
def clear
|
||||||
|
|
Loading…
Reference in a new issue