diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/services/post_status_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index e8f785db5..cc42289d8 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -113,6 +113,8 @@ class PostStatusService < BaseService # move tags out of body so we can format them later def extract_tags + return unless '#'.in?(@text) + @text = @text.dup if @text.frozen? @text.gsub!(/^##/, "\uf666") @text.gsub!('##', "\uf669") @tags |= Extractor.extract_hashtags(@text) |