From 87870358651396b54357af24cacf37c5f21af9c5 Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 9 Dec 2024 20:20:52 +1100 Subject: [PATCH] Finish taking the multiple issues which Discourse had with the very large number of posts in this particular topic --- goss-restorethread.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/goss-restorethread.rb b/goss-restorethread.rb index 85ab438..c52364f 100644 --- a/goss-restorethread.rb +++ b/goss-restorethread.rb @@ -1060,7 +1060,9 @@ class GossamerForumsImporter < ImportScripts::Base # sanitized_message.gsub!(/!\[(?:http|https):\/\/data:image\/[^]]+\]\((?:http|https):\/\/data:image\/[^)]+\)/, '') # sanitized_message.gsub!(/!\[(https?:\/\/data:image\/[^]]+)\]\((https?:\/\/data:image\/[^)]+)\)/, '') # sanitized_message.gsub!(/!\[(https?:\/\/data:image\/[^\]]+)\]\((https?:\/\/data:image\/[^\)]+)\)/) + puts "Here 111 #{sanitized_message}" sanitized_message.gsub!(/!\[https?:\/\/data:image[^\]]*\]\(https?:\/\/data:image[^\)]*\)/, '') + puts "Here 222 #{sanitized_message}" # Ensure sentence structure