Commit 5d644862 by Your Name

more post-open source reconciliation

parent f25b13bf
...@@ -238,15 +238,6 @@ class CommentThread < Content ...@@ -238,15 +238,6 @@ class CommentThread < Content
def to_hash(params={}) def to_hash(params={})
doc = as_document.slice(*%w[title body course_id anonymous anonymous_to_peers commentable_id created_at updated_at at_position_list closed]) doc = as_document.slice(*%w[title body course_id anonymous anonymous_to_peers commentable_id created_at updated_at at_position_list closed])
<<<<<<< HEAD
.merge("id" => _id, "user_id" => author.id,
"username" => author.username,
"votes" => votes.slice(*%w[count up_count down_count point]),
"tags" => tags_array,
"type" => "thread",
"group_id" => group_id,
"endorsed" => endorsed?)
=======
.merge("id" => _id, "user_id" => author_id, .merge("id" => _id, "user_id" => author_id,
"username" => author.username, "username" => author.username,
"votes" => votes.slice(*%w[count up_count down_count point]), "votes" => votes.slice(*%w[count up_count down_count point]),
...@@ -256,8 +247,6 @@ class CommentThread < Content ...@@ -256,8 +247,6 @@ class CommentThread < Content
"group_id" => group_id, "group_id" => group_id,
"pinned" => pinned?, "pinned" => pinned?,
"endorsed" => endorsed?) "endorsed" => endorsed?)
>>>>>>> master
if params[:recursive] if params[:recursive]
doc = doc.merge("children" => root_comments.map{|c| c.to_hash(recursive: true)}) doc = doc.merge("children" => root_comments.map{|c| c.to_hash(recursive: true)})
end end
...@@ -304,17 +293,12 @@ class CommentThread < Content ...@@ -304,17 +293,12 @@ class CommentThread < Content
!!(tag =~ RE_TAG) !!(tag =~ RE_TAG)
end end
<<<<<<< HEAD
private private
=======
def comment_thread_id def comment_thread_id
#so that we can use the comment thread id as a common attribute for flagging #so that we can use the comment thread id as a common attribute for flagging
self.id self.id
end end
private
>>>>>>> master
RE_HEADCHAR = /[a-z0-9]/ RE_HEADCHAR = /[a-z0-9]/
RE_ENDONLYCHAR = /\+/ RE_ENDONLYCHAR = /\+/
RE_ENDCHAR = /[a-z0-9\#]/ RE_ENDCHAR = /[a-z0-9\#]/
......
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