From 293b1a19d0a199ed4de36839365cd1f98ef8d2c6 Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Sep 2024 23:22:30 +1000 Subject: [PATCH] 0.31 more attempts... --- plugin.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin.rb b/plugin.rb index 8112555..fae3d9d 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.30 +# version: 0.31 # authors: saint@federated.computer # url: https://gitea.federated.computer/saint/discourse-legacy_links.git @@ -14,6 +14,9 @@ # after_initialize do after_initialize do + + require_dependency 'application_controller' + module ::DiscourseLegacyLinks class Engine < ::Rails::Engine engine_name "discourse_legacy_links" @@ -31,7 +34,8 @@ after_initialize do def index2 Rails.logger.warn "[WARN WARN WARN WARN WARN WARN WARN WARN WARN WARN AMDG JMJ PAX WARN WARN WARN WARN]" - render plain: 'Test route' +# render plain: 'Test route' + render html: '

JMJ

' end # Match URLs that include a post_id at the end or query parameter