parent
ae484fbead
commit
4ac36bbeff
1 changed files with 2 additions and 2 deletions
|
|
@ -16,12 +16,12 @@ module CommentsHelper
|
|||
[
|
||||
commentable.user_id,
|
||||
commentable.second_user_id,
|
||||
commentable.third_user_id
|
||||
commentable.third_user_id,
|
||||
].any? { |id| id == comment.user_id }
|
||||
end
|
||||
|
||||
def get_ama_or_op_banner(commentable)
|
||||
commentable.decorate.cached_tag_list_array.include?("ama") ? "ASK ME ANYTHING" : "OP"
|
||||
commentable.decorate.cached_tag_list_array.include?("ama") ? "Ask Me Anything" : "Author"
|
||||
end
|
||||
|
||||
def tree_for(comment, sub_comments, commentable)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue