Redirect with interstitial when trying to view a remote collection while logged out (#38941)

This commit is contained in:
Claire authored and GitHub committed 2026-05-07 16:04:26 +00:00
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