about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-14 10:06:40 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-14 10:06:40 -0600
commit83c7e5ec11f565c919138dc9dea6415910cfbd27 (patch)
tree62182840755b86ff68e78700fbba67117619f688 /app/services
parent51c376cc00eaec82d15c531ff05d51236bb105d0 (diff)
parentb93ea600c59af592539f86904553cfed441ac1c8 (diff)
Merge branch 'master' of monsterware.dev:monsterpit/mastodon
Diffstat (limited to 'app/services')
-rw-r--r--app/services/post_status_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 2fe1f3e56..da14728f7 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -100,7 +100,7 @@ class PostStatusService < BaseService
   end
 
   def has_only_mentions?
-    @options[:nomentions].blank? && @text.match?(/^(?:\s*@((#{Account::USERNAME_RE})(?:@[a-z0-9\.\-]+[a-z0-9]+)?))+$/i)
+    @options[:nomentions].blank? && @text.match?(/\A(?:\s*@((#{Account::USERNAME_RE})(?:@[a-z0-9\.\-]+[a-z0-9]+)?))+\z/i)
   end
 
   def mark_recipient_known