Commit 4dc09e5c1dbed7aa40209499e4d0889936bc72a1
1 parent
5f595be4
Exists in
spb-stable
and in
3 other branches
New bindings to vote on notes.
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
app/models/note.rb
@@ -199,7 +199,8 @@ class Note < ActiveRecord::Base | @@ -199,7 +199,8 @@ class Note < ActiveRecord::Base | ||
199 | def downvote? | 199 | def downvote? |
200 | votable? && (note.start_with?('-1') || | 200 | votable? && (note.start_with?('-1') || |
201 | note.start_with?(':-1:') || | 201 | note.start_with?(':-1:') || |
202 | - note.start_with?(':thumbsdown:') | 202 | + note.start_with?(':thumbsdown:') || |
203 | + note.start_with?(':thumbs_down_sign:') | ||
203 | ) | 204 | ) |
204 | end | 205 | end |
205 | 206 | ||
@@ -249,7 +250,8 @@ class Note < ActiveRecord::Base | @@ -249,7 +250,8 @@ class Note < ActiveRecord::Base | ||
249 | def upvote? | 250 | def upvote? |
250 | votable? && (note.start_with?('+1') || | 251 | votable? && (note.start_with?('+1') || |
251 | note.start_with?(':+1:') || | 252 | note.start_with?(':+1:') || |
252 | - note.start_with?(':thumbsup:') | 253 | + note.start_with?(':thumbsup:') || |
254 | + note.start_with?(':thumbs_up_sign:') | ||
253 | ) | 255 | ) |
254 | end | 256 | end |
255 | 257 |