diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-10-10 03:22:30 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-10-10 03:22:30 -0500 |
commit | 5c4a7ea6668fdfb76e26ddb76cdd3148c0e5083e (patch) | |
tree | 35a037dad6fd6cc6e1a482cbadfb96a7a893bef1 /app | |
parent | 7c9d81ea86d59df03ef1837f686913867deeffda (diff) |
Only use boosts for default world timeline
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/v1/statuses/bookmarks_controller.rb | 6 | ||||
-rw-r--r-- | app/services/favourite_service.rb | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/app/controllers/api/v1/statuses/bookmarks_controller.rb b/app/controllers/api/v1/statuses/bookmarks_controller.rb index 1bf698a78..19963c002 100644 --- a/app/controllers/api/v1/statuses/bookmarks_controller.rb +++ b/app/controllers/api/v1/statuses/bookmarks_controller.rb @@ -9,7 +9,6 @@ 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? render json: @status, serializer: REST::StatusSerializer end @@ -38,9 +37,4 @@ class Api::V1::Statuses::BookmarksController < Api::BaseController rescue Mastodon::NotPermittedError not_found end - - def curate! - @status.curate! - DistributionWorker.perform_async(@status.id) - end end diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb index f3e89746b..a0ab3b4b7 100644 --- a/app/services/favourite_service.rb +++ b/app/services/favourite_service.rb @@ -16,7 +16,6 @@ class FavouriteService < BaseService return favourite unless favourite.nil? favourite = Favourite.create!(account: account, status: status) - curate!(status) unless status.curated? || !status.published? create_notification(favourite) bump_potential_friendship(account, status) @@ -45,9 +44,4 @@ class FavouriteService < BaseService def build_json(favourite) Oj.dump(serialize_payload(favourite, ActivityPub::LikeSerializer)) end - - def curate!(status) - status.curate! - DistributionWorker.perform_async(status.id) - end end |