about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-16 21:47:58 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-16 21:47:58 -0600
commite02073f7daa5f374d158d2b0636f5edc5cec823f (patch)
tree5f9b1a30b4b1595b86930dc2aabb5bd28749ae4b
parent00bc2e6072a6fb55eace71eed90fa2d94a68bc2c (diff)
Correct typo.
-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