FIX: Media optimization setting was misnamed (#13766)

FIX: Media optimization setting was misnamed (#13766)

diff --git a/app/assets/javascripts/discourse/app/services/media-optimization-worker.js b/app/assets/javascripts/discourse/app/services/media-optimization-worker.js
index f108061..29f5674 100644
--- a/app/assets/javascripts/discourse/app/services/media-optimization-worker.js
+++ b/app/assets/javascripts/discourse/app/services/media-optimization-worker.js
@@ -43,7 +43,7 @@ export default class MediaOptimizationWorkerService extends Service {
     if (
       file.size <
       this.siteSettings
-        .composer_media_optimization_image_kilobytes_optimization_threshold
+        .composer_media_optimization_image_bytes_optimization_threshold
     ) {
       return data;
     }
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 1ae9ed9..3504f46 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -1827,7 +1827,7 @@ en:
     strip_image_metadata: "Strip image metadata."
 
     composer_media_optimization_image_enabled: "Enables client-side media optimization of uploaded image files."
-    composer_media_optimization_image_kilobytes_optimization_threshold: "Minimum image file size to trigger client-side optimization"
+    composer_media_optimization_image_bytes_optimization_threshold: "Minimum image file size to trigger client-side optimization"
     composer_media_optimization_image_resize_dimensions_threshold: "Minimum image width to trigger client-side resize"
     composer_media_optimization_image_resize_width_target: "Images with widths larger than `composer_media_optimization_image_dimensions_resize_threshold` will be resized to this width. Must be >= than `composer_media_optimization_image_dimensions_resize_threshold`."
     composer_media_optimization_image_encode_quality: "JPEG encode quality used in the re-encode process."
diff --git a/config/site_settings.yml b/config/site_settings.yml
index c9b83f7..f9c6c80 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -1415,7 +1415,7 @@ files:
   composer_media_optimization_image_enabled:
     default: false
     client: true
-  composer_media_optimization_image_kilobytes_optimization_threshold:
+  composer_media_optimization_image_bytes_optimization_threshold:
     default: 524288
     client: true
   composer_media_optimization_image_resize_dimensions_threshold:

GitHub sha: 216dc99f18ff077072a3c99b64bd0862dedc1973

This commit appears in #13766 which was approved by danielwaterworth. It was merged by Falco.