0.37 Significnat changes after more research, for testing.
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
 | 
			
		||||
# name: discourse-legacy_links
 | 
			
		||||
# about: A plugin to handle legacy Gossamer Forums URLs
 | 
			
		||||
# version: 0.36
 | 
			
		||||
# version: 0.37
 | 
			
		||||
# authors: saint@federated.computer
 | 
			
		||||
# url: https://gitea.federated.computer/saint/discourse-legacy_links.git
 | 
			
		||||
 | 
			
		||||
@@ -26,7 +26,7 @@ after_initialize do
 | 
			
		||||
    # Define the custom controller, inheriting from Discourse's CustomPostController
 | 
			
		||||
    # This gives us access to post-related functionality and user authentication
 | 
			
		||||
#    class DiscourseLegacyLinks::CustomPostController < ::ApplicationController
 | 
			
		||||
    class DiscourseLegacyLinks < ::ApplicationController::CustomPostController
 | 
			
		||||
    class LegacyLinksController < ::ApplicationController::CustomPostController
 | 
			
		||||
 | 
			
		||||
#      layout false
 | 
			
		||||
 | 
			
		||||
@@ -42,7 +42,7 @@ 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 JMJ'
 | 
			
		||||
        render plain: "Test route JMJ"
 | 
			
		||||
#        render html: '<h1>JMJ</h1>'
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user