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-10-10 21:02:15 -0500
committermultiple creatures <dev@multiple-creature.party>2019-10-10 21:02:15 -0500
commit81988e386d36894b2389afb94e3bfcb8c5ffaa5a (patch)
treee98d671991598889d9eadb9eddea3d95d704cf65 /app/services/post_status_service.rb
parent8a8e74fc2b45bff79d5d96207bc0ab8a9f30c47e (diff)
stopped using private-use codepoints as formatting placeholders (resolves #9)
Diffstat (limited to 'app/services/post_status_service.rb')
-rw-r--r--app/services/post_status_service.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 95333585f..e7c81309f 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -135,14 +135,14 @@ class PostStatusService < BaseService
   def extract_tags
     return unless '#'.in?(@text)
     @text = @text.dup if @text.frozen?
-    @text.gsub!(/^##/, "\uf666")
-    @text.gsub!('##', "\uf669")
+    @text.gsub!(/^##/, "\ufdd6")
+    @text.gsub!('##', "\ufdd9")
     @tags |= Extractor.extract_hashtags(@text)
     @text.strip!
     @text.gsub!(/^(?:#[\w:._·\-]+\s*)+$/, '')
     @text.strip!
-    @text.gsub!("\uf669", "##")
-    @text.gsub!("\uf666", "#")
+    @text.gsub!("\ufdd9", "##")
+    @text.gsub!("\ufdd6", "#")
   end
 
   def preprocess_attributes!