diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/status.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 0dd1b07bc..4efa74b48 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -624,6 +624,7 @@ class Status < ApplicationRecord end def update_normalized_text + return if destroyed? return unless (normalized_text.blank? && !text.blank?) || saved_change_to_text? self.normalized_text = normalize_status(self) Rails.cache.delete("formatted_status:#{id}") |