Merge pull request #1384 from tsigo/emoji

Emoji!
This commit is contained in:
Dmitriy Zaporozhets 2012-09-06 23:05:18 -07:00
commit 4f8a4aa44c
852 changed files with 121 additions and 48 deletions

View file

@ -103,7 +103,7 @@ class Note < ActiveRecord::Base
# Returns true if this is an upvote note,
# otherwise false is returned
def upvote?
note =~ /^\+1/ ? true : false
note.start_with?('+1') || note.start_with?(':+1:')
end
end
# == Schema Information