Commit f8e3aadb by Arjun Singh

Make failing spec pass by allowing authors to see their own usernames.

parent 95d3eaf4
...@@ -16,7 +16,7 @@ get "#{APIPREFIX}/threads/:thread_id" do |thread_id| ...@@ -16,7 +16,7 @@ get "#{APIPREFIX}/threads/:thread_id" do |thread_id|
thread = CommentThread.find(thread_id) thread = CommentThread.find(thread_id)
if params["user_id"] and bool_mark_as_read if params["user_id"] and bool_mark_as_read
user = User.only([:id, :read_states]).find_by(external_id: params["user_id"]) user = User.only([:id, :username, :read_states]).find_by(external_id: params["user_id"])
user.mark_as_read(thread) if user user.mark_as_read(thread) if user
end 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