Change following and followers API to be accessible without being logged in (#18964)
This commit is contained in:
		
							parent
							
								
									e7cc67d505
								
							
						
					
					
						commit
						7c8bba150b
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
# frozen_string_literal: true
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Api::V1::Accounts::FollowerAccountsController < Api::BaseController
 | 
					class Api::V1::Accounts::FollowerAccountsController < Api::BaseController
 | 
				
			||||||
  before_action -> { doorkeeper_authorize! :read, :'read:accounts' }
 | 
					  before_action -> { authorize_if_got_token! :read, :'read:accounts' }
 | 
				
			||||||
  before_action :set_account
 | 
					  before_action :set_account
 | 
				
			||||||
  after_action :insert_pagination_headers
 | 
					  after_action :insert_pagination_headers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
# frozen_string_literal: true
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Api::V1::Accounts::FollowingAccountsController < Api::BaseController
 | 
					class Api::V1::Accounts::FollowingAccountsController < Api::BaseController
 | 
				
			||||||
  before_action -> { doorkeeper_authorize! :read, :'read:accounts' }
 | 
					  before_action -> { authorize_if_got_token! :read, :'read:accounts' }
 | 
				
			||||||
  before_action :set_account
 | 
					  before_action :set_account
 | 
				
			||||||
  after_action :insert_pagination_headers
 | 
					  after_action :insert_pagination_headers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue