From 5273d52f282fe62daf8784cd58ed0396e0675a91 Mon Sep 17 00:00:00 2001 From: Kane York Date: Tue, 23 Jun 2020 23:26:04 -0700 Subject: [PATCH] FIX: Do not require login to see ads.txt (#84) --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 05f119e..d251b05 100755 --- a/plugin.rb +++ b/plugin.rb @@ -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?