about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-09-19 23:35:58 -0500
committermultiple creatures <dev@multiple-creature.party>2019-09-19 23:35:58 -0500
commit3d133d164146878048d703bc608f3ad6f6506ae4 (patch)
tree3c5914648cfed341c84d0a6d3effdf992f4206b3
parentf14d5b7ee17788916534b6fc6253a01bdf09cf2a (diff)
when converting in-body tags to out-of-body tags, only strip lines that are nothing but in-body tags
-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 6377248e5..572f91d51 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -139,7 +139,7 @@ class PostStatusService < BaseService
     @text.gsub!('##', "\uf669")
     @tags |= Extractor.extract_hashtags(@text)
     @text.strip!
-    @text.gsub!(/^(?:#[\w:._·\-]+\s*)+|(?:#[\w:._·\-]+\s*)+\Z/, '')
+    @text.gsub!(/^(?:#[\w:._·\-]+\s*)+$/, '')
     @text.gsub!("\uf669", "##")
     @text.gsub!("\uf666", "#")
   end