mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Merge branch 'zj-system-notes-not-awardable' into 'master'
Award Emoji can't be awarded on system notes backend See merge request !4668
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user