0.35 Significnat changes after more research, for testing.
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# 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.35
 | 
					# version: 0.36
 | 
				
			||||||
# 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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -32,8 +32,8 @@ after_initialize do
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      # Skip certain before_actions for our index method.
 | 
					      # Skip certain before_actions for our index method.
 | 
				
			||||||
      # This allows the route to be accessed directly via a browser
 | 
					      # This allows the route to be accessed directly via a browser
 | 
				
			||||||
      skip_before_action :check_xhr, only: [:index]
 | 
					##      skip_before_action :check_xhr, only: [:index]
 | 
				
			||||||
      skip_before_action :verify_authenticity_token, only: [:index]
 | 
					##      skip_before_action :verify_authenticity_token, only: [:index]
 | 
				
			||||||
#      skip_before_action :verify_authenticity_token
 | 
					#      skip_before_action :verify_authenticity_token
 | 
				
			||||||
#      skip_before_action :ensure_logged_in
 | 
					#      skip_before_action :ensure_logged_in
 | 
				
			||||||
#      skip_before_action :redirect_to_login_if_required
 | 
					#      skip_before_action :redirect_to_login_if_required
 | 
				
			||||||
@@ -163,7 +163,7 @@ after_initialize do
 | 
				
			|||||||
#    get '/forum' => 'discourse_legacy_links/custom_post#index'
 | 
					#    get '/forum' => 'discourse_legacy_links/custom_post#index'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  DiscourseLegacyLinks::Engine.routes.draw do
 | 
					  DiscourseLegacyLinks::Engine.routes.draw do
 | 
				
			||||||
    get "/forum2" =< "legacy_links#index2"
 | 
					    get "/forum2" => "legacy_links#index2"
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Discourse::Application.routes.append do
 | 
					  Discourse::Application.routes.append do
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user