Tackle the root issue with Discourse not playing ball with post min entropy 0 / post unclear issue
This commit is contained in:
parent
33ef6ffbd5
commit
9f1dcb3ee9
@ -1049,6 +1049,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
# sanitized_message.sub!(/\n?\[signature\]\n?\z/, '')
|
# 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]*/, '')
|
sanitized_message.gsub!(/[\r\n]*\[signature\][\r\n]*/, '')
|
||||||
|
sanitized_message.gsub!(/[\r\n]*\[inline.*\][\r\n]*/, '')
|
||||||
|
|
||||||
# Ensure minimum length
|
# Ensure minimum length
|
||||||
if sanitized_message.strip.empty? || sanitized_message.length < 5
|
if sanitized_message.strip.empty? || sanitized_message.length < 5
|
||||||
|
Loading…
Reference in New Issue
Block a user