Remove Salmon and PubSubHubbub (#11205)
* Remove Salmon and PubSubHubbub endpoints * Add error when trying to follow OStatus accounts * Fix new accounts not being created in ResolveAccountService
This commit is contained in:
		@@ -2,8 +2,8 @@
 | 
			
		||||
 | 
			
		||||
module Admin
 | 
			
		||||
  class AccountsController < BaseController
 | 
			
		||||
    before_action :set_account, only: [:show, :subscribe, :unsubscribe, :redownload, :remove_avatar, :remove_header, :enable, :unsilence, :unsuspend, :memorialize, :approve, :reject]
 | 
			
		||||
    before_action :require_remote_account!, only: [:subscribe, :unsubscribe, :redownload]
 | 
			
		||||
    before_action :set_account, only: [:show, :redownload, :remove_avatar, :remove_header, :enable, :unsilence, :unsuspend, :memorialize, :approve, :reject]
 | 
			
		||||
    before_action :require_remote_account!, only: [:redownload]
 | 
			
		||||
    before_action :require_local_account!, only: [:enable, :memorialize, :approve, :reject]
 | 
			
		||||
 | 
			
		||||
    def index
 | 
			
		||||
@@ -19,18 +19,6 @@ module Admin
 | 
			
		||||
      @warnings                = @account.targeted_account_warnings.latest.custom
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def subscribe
 | 
			
		||||
      authorize @account, :subscribe?
 | 
			
		||||
      Pubsubhubbub::SubscribeWorker.perform_async(@account.id)
 | 
			
		||||
      redirect_to admin_account_path(@account.id)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def unsubscribe
 | 
			
		||||
      authorize @account, :unsubscribe?
 | 
			
		||||
      Pubsubhubbub::UnsubscribeWorker.perform_async(@account.id)
 | 
			
		||||
      redirect_to admin_account_path(@account.id)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def memorialize
 | 
			
		||||
      authorize @account, :memorialize?
 | 
			
		||||
      @account.memorialize!
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user