about summary refs log tree commit diff
path: root/app/services/post_status_service.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-14 13:48:33 +0000
committermultiple creatures <dev@multiple-creature.party>2019-12-14 13:49:39 +0000
commitb93ea600c59af592539f86904553cfed441ac1c8 (patch)
tree9b9fab559704bd6506bd53bd46ebbfafb4bd605e /app/services/post_status_service.rb
parent4b0612c11db1ff2f2206b23d16586f6c3c31e2af (diff)
fix no body text error
Diffstat (limited to 'app/services/post_status_service.rb')
-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