about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-11-29 11:44:10 -0600
committerFire Demon <firedemon@creature.cafe>2020-11-29 11:44:10 -0600
commit870ebfe74e9b91249bad6cfaf2b3a5a650d19c2a (patch)
tree6c073f6a6611f74f32838a86ce5c489d4d583d41 /app/controllers
parent876b6dbf766372303ad5f646fdcba4dccde47ca4 (diff)
Simply Tavern curation checks
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/statuses/bookmarks_controller.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/api/v1/statuses/bookmarks_controller.rb b/app/controllers/api/v1/statuses/bookmarks_controller.rb
index 1bf698a78..d7f3d8475 100644
--- a/app/controllers/api/v1/statuses/bookmarks_controller.rb
+++ b/app/controllers/api/v1/statuses/bookmarks_controller.rb
@@ -9,7 +9,7 @@ class Api::V1::Statuses::BookmarksController < Api::BaseController
 
   def create
     current_account.bookmarks.find_or_create_by!(account: current_account, status: @status)
-    curate! unless @status.curated? || !@status.published?
+    curate!
     render json: @status, serializer: REST::StatusSerializer
   end
 
@@ -40,7 +40,6 @@ class Api::V1::Statuses::BookmarksController < Api::BaseController
   end
 
   def curate!
-    @status.curate!
-    DistributionWorker.perform_async(@status.id)
+    DistributionWorker.perform_async(@status.id) if @status.curate!
   end
 end