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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index f21a2087e..6ab33c9b4 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -292,7 +292,7 @@ class Status < ApplicationRecord
     if destructing_status.nil?
       DestructingStatus.create!(status_id: id, delete_after: Time.now.utc + value)
     else
-      destructing_status.delete_after = Time.now.utc + value
+      destructing_status.update(delete_after: Time.now.utc + value)
     end
   end
 
@@ -306,7 +306,7 @@ class Status < ApplicationRecord
     if defederating_status.nil?
       DefederatingStatus.create!(status_id: id, defederate_after: Time.now.utc + value)
     else
-      defederating_status.defederate_after = Time.now.utc + value
+      defederating_status.update(defederate_after: Time.now.utc + value)
     end
   end