Revert "Merge upstream changes up to df72a2dbbec8173515568c02427076ebff5c2297"

This commit is contained in:
Claire
2025-09-25 18:29:45 +02:00
committed by GitHub
parent 805a19e288
commit 855c3be3d7
101 changed files with 759 additions and 945 deletions

View File

@@ -159,6 +159,8 @@ class Api::V1::StatusesController < Api::BaseController
end
def set_quoted_status
return unless Mastodon::Feature.outgoing_quotes_enabled?
@quoted_status = Status.find(status_params[:quoted_status_id]) if status_params[:quoted_status_id].present?
authorize(@quoted_status, :quote?) if @quoted_status.present?
rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError