Fix double render error when authorizing interaction (#18203)
This commit is contained in:
parent
6e4d932da5
commit
33f3818d66
2 changed files with 9 additions and 4 deletions
|
@ -21,7 +21,10 @@ class FollowingAccountsController < ApplicationController
|
|||
end
|
||||
|
||||
format.json do
|
||||
raise Mastodon::NotPermittedError if page_requested? && @account.hide_collections?
|
||||
if page_requested? && @account.hide_collections?
|
||||
forbidden
|
||||
next
|
||||
end
|
||||
|
||||
expires_in(page_requested? ? 0 : 3.minutes, public: public_fetch_mode?)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue