about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-05 13:05:46 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-05 13:05:46 -0600
commit98339c8fb3ce4e9fa78a97c3ea8106a406d0beea (patch)
tree06e0372fa5c7f665fc9e47ae10b017c2944e73ad /app/services
parent273a9b94dee16d5e77172c2b79433d6c20abf4a8 (diff)
use `update` to change `curated` flags
Diffstat (limited to 'app/services')
-rw-r--r--app/services/favourite_service.rb3
-rw-r--r--app/services/reblog_service.rb3
2 files changed, 2 insertions, 4 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb
index 08d2c9c56..b711fb93c 100644
--- a/app/services/favourite_service.rb
+++ b/app/services/favourite_service.rb
@@ -50,8 +50,7 @@ class FavouriteService < BaseService
 
   def curate_status(status)
     return if status.curated || !status.distributable? || (status.reply? && status.in_reply_to_account_id != status.account_id)
-    status.curated = true
-    status.save
+    status.update(curated: true)
     FanOutOnWriteService.new.call(status)
   end
 end
diff --git a/app/services/reblog_service.rb b/app/services/reblog_service.rb
index 8ade09861..e2062d63c 100644
--- a/app/services/reblog_service.rb
+++ b/app/services/reblog_service.rb
@@ -69,8 +69,7 @@ class ReblogService < BaseService
 
   def curate_status(status)
     return if status.curated || !status.distributable? || (status.reply? && status.in_reply_to_account_id != status.account_id)
-    status.curated = true
-    status.save
+    status.update(curated: true)
     FanOutOnWriteService.new.call(status)
   end
 end