Redirect with interstitial when trying to view a remote collection while logged out (#38941)
This commit is contained in:
1 parent
496d41cdce
commit
b2aa476abb
4 files changed
+32
No files matched your search
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Redirect::CollectionsController < Redirect::BaseController
|
||||
private
|
||||
|
||||
def set_resource
|
||||
@resource = Collection.find(params[:id])
|
||||
not_found if @resource.local? || @resource&.account&.suspended?
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user