diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-14 13:48:33 +0000 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-14 13:49:39 +0000 |
commit | b93ea600c59af592539f86904553cfed441ac1c8 (patch) | |
tree | 9b9fab559704bd6506bd53bd46ebbfafb4bd605e /app | |
parent | 4b0612c11db1ff2f2206b23d16586f6c3c31e2af (diff) |
fix no body text error
Diffstat (limited to 'app')
-rw-r--r-- | app/services/post_status_service.rb | 2 |
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 |