From dd24920058fdf289e1025886e9be17a3038fa3bf Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Sep 2024 17:25:12 +1000 Subject: [PATCH] v0.16 So close, but it doesn't work still... --- plugin.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin.rb b/plugin.rb index 50497cd..9ad8c8c 100644 --- a/plugin.rb +++ b/plugin.rb @@ -4,7 +4,7 @@ # name: discourse-legacy_links # about: A plugin to handle legacy Gossamer Forums URLs -# version: 0.20 +# version: 0.21 # authors: saint@federated.computer # url: https://gitea.federated.computer/saint/discourse-legacy_links.git @@ -22,11 +22,12 @@ after_initialize do # Define the custom controller class DiscourseLegacyLinks::CustomPostController < ::ApplicationController + layout false # skip_before_action :verify_authenticity_token # skip_before_action :ensure_logged_in # skip_before_action :redirect_to_login_if_required -# skip_before_action :check_xhr -# skip_before_action :ensure_staff + skip_before_action :check_xhr + skip_before_action :ensure_staff def test Rails.logger.warn "[WARN WARN WARN WARN WARN WARN WARN WARN WARN WARN AMDG JMJ PAX WARN WARN WARN WARN]"