Award Emoji can't be awarded on system notes backend
This commit is contained in:
parent
d8563bd6c2
commit
31944179aa
1 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,10 @@ class Note < ActiveRecord::Base
|
|||
award_emoji_supported? && contains_emoji_only?
|
||||
end
|
||||
|
||||
def emoji_awardable?
|
||||
!system?
|
||||
end
|
||||
|
||||
def clear_blank_line_code!
|
||||
self.line_code = nil if self.line_code.blank?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue