From b93ea600c59af592539f86904553cfed441ac1c8 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 14 Dec 2019 13:48:33 +0000 Subject: fix no body text error --- app/services/post_status_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') 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 -- cgit