allow eye emoji to be a local-only flag

staging
multiple creatures 2019-03-10 02:43:18 +00:00
parent 3e55dcf944
commit f21d4c3209
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ class Status < ApplicationRecord
def marked_local_only?
# match both with and without U+FE0F (the emoji variation selector)
/#!\z/.match?(content)
/(?:#!|\u{1f441}\ufe0f?)\u200b?\z/.match?(content)
end
def marked_no_replies?