about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-17 13:43:29 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commit036f422877693ae30079c322bbd3ebf9155a8409 (patch)
treea632a55f6bd7c9bb2b196116efb86c3a42d84f44 /app/controllers/api
parent500b485b771a789e3e25f58cf33728bff3881f7a (diff)
Make sure only distributable statuses are marked curated; move bangtags processing into own helper lib.
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/statuses/bookmarks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/statuses/bookmarks_controller.rb b/app/controllers/api/v1/statuses/bookmarks_controller.rb
index 61afd7085..5759ea1f9 100644
--- a/app/controllers/api/v1/statuses/bookmarks_controller.rb
+++ b/app/controllers/api/v1/statuses/bookmarks_controller.rb
@@ -40,7 +40,7 @@ class Api::V1::Statuses::BookmarksController < Api::BaseController
   end
 
   def curate_status(status)
-    return if status.curated || status.direct_visibility? || (status.reply? && status.in_reply_to_account_id != status.account_id)
+    return if status.curated || !status.distributable? || (status.reply? && status.in_reply_to_account_id != status.account_id)
     status.curated = true
     status.save
     FanOutOnWriteService.new.call(status)