try to tighten up local only toot stuff, like... properly (#163)

* try to tighten up local only toot stuff, like... properly

* try to un-break tests
This commit is contained in:
beatrix
2017-10-09 09:56:17 -04:00
committed by GitHub
parent 92a3181dc6
commit f0a2a6c875
4 changed files with 13 additions and 2 deletions

View File

@@ -257,6 +257,11 @@ class Status < ApplicationRecord
end
end
def local_only?
# match both with and without U+FE0F (the emoji variation selector)
/👁\ufe0f?\z/.match?(content)
end
private
def store_uri