Change OP to AUTHOR (#1919)

* Change OP to AUTHOR

* Make lowercase
This commit is contained in:
Ben Halpern 2019-02-27 08:57:04 -08:00 committed by GitHub
parent ae484fbead
commit 4ac36bbeff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)