From 94fcd228a5ac562fa7ac10d1d1f82446868a7781 Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Sep 2024 21:08:27 +1000 Subject: [PATCH] v0.16 So close, but it doesn't work still... --- plugin.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin.rb b/plugin.rb index c36b3ae..65b9c29 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.24 +# version: 0.25 # authors: saint@federated.computer # url: https://gitea.federated.computer/saint/discourse-legacy_links.git @@ -21,8 +21,8 @@ after_initialize do end # Define the custom controller - class DiscourseLegacyLinks::CustomPostController < ::ApplicationController -# layout false + class DiscourseLegacyLinks::CustomPostController < ::Discourse::ApplicationController + layout false # skip_before_action :verify_authenticity_token # skip_before_action :ensure_logged_in # skip_before_action :redirect_to_login_if_required @@ -64,7 +64,7 @@ after_initialize do end end - private +# private # Extracts the post ID from the request URL or query string. # Supports various formats of legacy forum URLs.