about summary refs log tree commit diff
path: root/app/controllers
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/controllers
parent273a9b94dee16d5e77172c2b79433d6c20abf4a8 (diff)
use `update` to change `curated` flags
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/statuses/bookmarks_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/api/v1/statuses/bookmarks_controller.rb b/app/controllers/api/v1/statuses/bookmarks_controller.rb
index 5759ea1f9..51d133b22 100644
--- a/app/controllers/api/v1/statuses/bookmarks_controller.rb
+++ b/app/controllers/api/v1/statuses/bookmarks_controller.rb
@@ -41,8 +41,7 @@ class Api::V1::Statuses::BookmarksController < Api::BaseController
 
   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