From d7a2bc4d4c323deb5bdd9ff3e8ad53dfa6bdd97a Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Sep 2024 02:59:53 +1000 Subject: [PATCH] v0.12 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 57d21f8..cdbf878 100644 --- a/plugin.rb +++ b/plugin.rb @@ -4,13 +4,13 @@ # name: discourse-legacy_links # about: A plugin to handle legacy Gossamer Forums URLs -# version: 0.12 +# version: 0.13 # authors: saint@federated.computer # url: https://gitea.federated.computer/saint/discourse-legacy_links.git # require 'digest' -enabled_site_setting :discourse_legacy_links_enabled +# enabled_site_setting :discourse_legacy_links_enabled # after_initialize do after_initialize do @@ -127,9 +127,9 @@ after_initialize do end # Register custom routes to handle legacy URLs - Rails.looger.warn "[DEBUG DEBUG DEBUG DEBUG DEBUG WOW WOW WOW]" + Rails.logger.warn "[DEBUG DEBUG DEBUG DEBUG DEBUG WOW WOW WOW]" # Discourse::Application.routes.append do -# Discourse::Application.routes.draw do + Discourse::Application.routes.draw do get '/test_route' => 'discourse_legacy_links/custom_post#test' get '/forum/*path' => 'discourse_legacy_links/custom_post#index' get '/forum' => 'discourse_legacy_links/custom_post#index'