Commit 88b0cd88 by Kevin Chugh

flagged search started

parent 6a27f7aa
......@@ -107,6 +107,11 @@ helpers do
end
def handle_threads_query(comment_threads)
if params[:flagged]
#get flagged threads and threads containing flagged responses
comment_threads = comment_threads.where(:course_id=>params[:course_id]).where(:abuse_flaggers)
else
if params[:course_id]
comment_threads = comment_threads.where(:course_id=>params[:course_id])
end
......@@ -165,6 +170,7 @@ helpers do
}.to_json
end
end
end
def author_contents_only(contents, author_id)
contents.map do |content|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment