Commit 31944179 authored by Z.J. van de Weg's avatar Z.J. van de Weg

Award Emoji can't be awarded on system notes backend

parent d8563bd6
...@@ -187,6 +187,10 @@ class Note < ActiveRecord::Base ...@@ -187,6 +187,10 @@ class Note < ActiveRecord::Base
award_emoji_supported? && contains_emoji_only? award_emoji_supported? && contains_emoji_only?
end end
def emoji_awardable?
!system?
end
def clear_blank_line_code! def clear_blank_line_code!
self.line_code = nil if self.line_code.blank? self.line_code = nil if self.line_code.blank?
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