diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-10 04:14:37 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-10 04:14:37 -0600 |
commit | a29fb04e7c1c7a719a29f40da275d4981ef2ebb5 (patch) | |
tree | 87eaab291a77a3056938bdc5410bd90818044e08 /app/models | |
parent | f03960382bd05b8570e0e3b1066545831c59138a (diff) |
bon voyage to that shitty text normalization code
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index d051d8962..f5f51779f 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -40,7 +40,6 @@ class Status < ApplicationRecord include Streamable include Cacheable include StatusThreadingConcern - include TextHelper # match both with and without U+FE0F (the emoji variation selector) LOCAL_ONLY_TOKENS = /(?:#!|\u{1f441}\ufe0f?)\u200b?\z/ @@ -358,7 +357,6 @@ class Status < ApplicationRecord after_save :update_sharekey, if: :local? after_save :update_origin, if: :local? - after_save :update_normalized_text after_save :process_bangtags, if: :local? class << self @@ -680,16 +678,6 @@ class Status < ApplicationRecord end end - def update_normalized_text - return if destroyed? || text.blank? || !(text_changed? || saved_change_to_text?) - normalized_text = normalize_status(self) - if self.normalized_status.nil? - self.create_normalized_status(text: normalized_text) - else - self.normalized_status.update_attributes(text: normalized_text) - end - end - def set_conversation self.thread = thread.reblog if thread&.reblog? |