Commit 9da8b39b by Chris Dodge Committed by Saqib

be sure to initialize the thread_ids dictionary for the single user case

parent 69e4bd48
......@@ -104,6 +104,7 @@ get "#{APIPREFIX}/users/:user_id/social_stats" do |user_id|
"num_flagged" => 0,
"num_comments_generated" => 0
}
thread_ids[user_id] = []
end
content.each do |item|
......@@ -119,7 +120,6 @@ get "#{APIPREFIX}/users/:user_id/social_stats" do |user_id|
"num_flagged" => 0,
"num_comments_generated" => 0
}
thread_ids[user_id] = []
end
......
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