v0.16 So close, but it doesn't work still...
This commit is contained in:
		
							
								
								
									
										12
									
								
								plugin.rb
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								plugin.rb
									
									
									
									
									
								
							@@ -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.17
 | 
					# version: 0.18
 | 
				
			||||||
# 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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -22,11 +22,11 @@ after_initialize do
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # Define the custom controller
 | 
					    # Define the custom controller
 | 
				
			||||||
    class CustomPostController < ::ApplicationController
 | 
					    class CustomPostController < ::ApplicationController
 | 
				
			||||||
      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
 | 
				
			||||||
      skip_before_action :check_xhr
 | 
					#      skip_before_action :check_xhr
 | 
				
			||||||
      skip_before_action :ensure_staff
 | 
					#      skip_before_action :ensure_staff
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      def test
 | 
					      def test
 | 
				
			||||||
        Rails.logger.warn "[WARN WARN WARN WARN WARN WARN WARN WARN WARN WARN AMDG JMJ PAX WARN WARN WARN WARN]"
 | 
					        Rails.logger.warn "[WARN WARN WARN WARN WARN WARN WARN WARN WARN WARN AMDG JMJ PAX WARN WARN WARN WARN]"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user