From 31944179aac2c0c0dcb932b73e69421da4fa2ff8 Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Wed, 15 Jun 2016 12:29:57 +0200 Subject: [PATCH] Award Emoji can't be awarded on system notes backend --- app/models/note.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/note.rb b/app/models/note.rb index 58133f1581f..4b6748053ff 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -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