about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index a2d2a8f28..0dd1b07bc 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -625,8 +625,8 @@ class Status < ApplicationRecord
 
   def update_normalized_text
     return unless (normalized_text.blank? && !text.blank?) || saved_change_to_text?
-    Rails.cache.delete("formatted_status:#{status.id}")
     self.normalized_text = normalize_status(self)
+    Rails.cache.delete("formatted_status:#{id}")
   end
 
   def set_conversation