Commit 236ff613 by Ibrahim Awwal

Make sure to scope followed threads by course.

parent f2e491e7
......@@ -3,7 +3,7 @@ get "#{APIPREFIX}/users/:user_id/notifications" do |user_id|
end
get "#{APIPREFIX}/users/:user_id/subscribed_threads" do |user_id|
handle_threads_query(user.subscribed_threads)
handle_threads_query(user.subscribed_threads.where(:course_id=>params[:course_id]))
end
post "#{APIPREFIX}/users/:user_id/subscriptions" do |user_id|
......
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