use proper typographical × instead of x

use proper typographical × instead of x
diff --git a/app/assets/javascripts/discourse/lib/lightbox.js.es6 b/app/assets/javascripts/discourse/lib/lightbox.js.es6
index 6b0014e..b8e2219 100644
--- a/app/assets/javascripts/discourse/lib/lightbox.js.es6
+++ b/app/assets/javascripts/discourse/lib/lightbox.js.es6
@@ -48,7 +48,6 @@ export default function($elem) {
               escapeExpression(item.el.attr("title")),
               $("span.informations", item.el)
                 .text()
-                .replace("x", "×")
             ];
             if (
               !Discourse.SiteSettings.prevent_anons_from_downloading_files ||
diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb
index eefac2f..1e8b0a0 100644
--- a/lib/cooked_post_processor.rb
+++ b/lib/cooked_post_processor.rb
@@ -421,7 +421,7 @@ class CookedPostProcessor
     img.add_next_sibling(meta)
 
     filename = get_filename(upload, img["src"])
-    informations = "#{original_width}x#{original_height}"
+    informations = "#{original_width}×#{original_height}"
     informations << " #{number_to_human_size(upload.filesize)}" if upload
 
     a["title"] = CGI.escapeHTML(img["title"] || filename)

GitHub
sha: a74e49c8

1 Like