From a8163a5c0cde06220ad71b2f96a304c28631a38a Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 20 May 2022 13:03:00 +0100 Subject: [PATCH] DEV: Add comment about `UserController#cards` route (#16882) This is unusual because it is not used directly by any core UI. It was added for theme components. --- app/controllers/users_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 20e90ae126e..67f78b1bbba 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -105,6 +105,7 @@ class UsersController < ApplicationController show(for_card: true) end + # This route is not used in core, but is used by theme components (e.g. https://meta.discourse.org/t/144479) def cards return redirect_to path('/login') if SiteSetting.hide_user_profiles_from_public && !current_user