Tackle the root issue with Discourse not playing ball with post min entropy 0 / post unclear issue
This commit is contained in:
		@@ -1047,7 +1047,8 @@ class GossamerForumsImporter < ImportScripts::Base
 | 
			
		||||
 | 
			
		||||
    # Remove the [signature] as we don't support this in Discourse
 | 
			
		||||
#    sanitized_message.sub!(/\n?\[signature\]\n?\z/, '')
 | 
			
		||||
    sanitized_message.gsub(/\n?\[signature\]\n?/, '')
 | 
			
		||||
#    sanitized_message.gsub(/\n?\[signature\]\n?/, '')
 | 
			
		||||
    sanitized_message.gsub!(/[\r\n]*\[signature\][\r\n]*/, '')
 | 
			
		||||
 | 
			
		||||
    # Ensure minimum length
 | 
			
		||||
    if sanitized_message.strip.empty? || sanitized_message.length < 5
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user