diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-03-20 13:31:43 +0100 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-03-20 13:33:16 +0100 |
commit | 4dc09e5c1dbed7aa40209499e4d0889936bc72a1 (patch) | |
tree | 4e8cdecdf3630ea25ce115513e510be295acdaf7 | |
parent | 5f595be4b80ae57c92d01dc1c0026566f80e67d4 (diff) | |
download | gitlab-ce-4dc09e5c1dbed7aa40209499e4d0889936bc72a1.tar.gz |
New bindings to vote on notes.
-rw-r--r-- | app/models/note.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 48c03c9d587..906de4855ab 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -199,7 +199,8 @@ class Note < ActiveRecord::Base def downvote? votable? && (note.start_with?('-1') || note.start_with?(':-1:') || - note.start_with?(':thumbsdown:') + note.start_with?(':thumbsdown:') || + note.start_with?(':thumbs_down_sign:') ) end @@ -249,7 +250,8 @@ class Note < ActiveRecord::Base def upvote? votable? && (note.start_with?('+1') || note.start_with?(':+1:') || - note.start_with?(':thumbsup:') + note.start_with?(':thumbsup:') || + note.start_with?(':thumbs_up_sign:') ) end |