FIX: Do not require login to see ads.txt (#84)

This commit is contained in:
Kane York 2020-06-23 23:26:04 -07:00 committed by GitHub
parent 4ded0bdba9
commit 5273d52f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ after_initialize do
end
class ::AdstxtController < ::ApplicationController
skip_before_action :check_xhr
skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required
def index
raise Discourse::NotFound unless SiteSetting.ads_txt.present?