FIX: convert hotlinked non-image urls to short url.

3840ace978
This commit is contained in:
Vinoth Kannan
2019-07-17 09:15:09 +05:30
parent 2a0cd066a7
commit dd0f0494c6
2 changed files with 4 additions and 7 deletions
-5
View File
@@ -123,11 +123,6 @@ class InlineUploads
.sort { |a, b| a[3] <=> b[3] }
.each do |match, link, replace_with, _index|
if match == link
extension = match.split(".")[-1].downcase
next if FileHelper.supported_images.exclude?(extension)
end
node_info = link_occurences.shift
next unless node_info&.dig(:is_valid)