v0.12 So close, but it doesn't work still...
This commit is contained in:
		@@ -4,13 +4,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# name: discourse-legacy_links
 | 
					# name: discourse-legacy_links
 | 
				
			||||||
# about: A plugin to handle legacy Gossamer Forums URLs
 | 
					# about: A plugin to handle legacy Gossamer Forums URLs
 | 
				
			||||||
# version: 0.12
 | 
					# version: 0.13
 | 
				
			||||||
# authors: saint@federated.computer
 | 
					# authors: saint@federated.computer
 | 
				
			||||||
# url: https://gitea.federated.computer/saint/discourse-legacy_links.git
 | 
					# url: https://gitea.federated.computer/saint/discourse-legacy_links.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# require 'digest'
 | 
					# require 'digest'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
enabled_site_setting :discourse_legacy_links_enabled
 | 
					# enabled_site_setting :discourse_legacy_links_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# after_initialize do
 | 
					# after_initialize do
 | 
				
			||||||
after_initialize do
 | 
					after_initialize do
 | 
				
			||||||
@@ -127,9 +127,9 @@ after_initialize do
 | 
				
			|||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Register custom routes to handle legacy URLs
 | 
					    # 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.append do
 | 
				
			||||||
#    Discourse::Application.routes.draw do
 | 
					    Discourse::Application.routes.draw do
 | 
				
			||||||
      get '/test_route' => 'discourse_legacy_links/custom_post#test'
 | 
					      get '/test_route' => 'discourse_legacy_links/custom_post#test'
 | 
				
			||||||
      get '/forum/*path' => 'discourse_legacy_links/custom_post#index'
 | 
					      get '/forum/*path' => 'discourse_legacy_links/custom_post#index'
 | 
				
			||||||
      get '/forum' => 'discourse_legacy_links/custom_post#index'
 | 
					      get '/forum' => 'discourse_legacy_links/custom_post#index'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user