From 98339c8fb3ce4e9fa78a97c3ea8106a406d0beea Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 5 Dec 2019 13:05:46 -0600 Subject: use `update` to change `curated` flags --- app/controllers/api/v1/statuses/bookmarks_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/controllers/api/v1/statuses') 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 -- cgit