REFACTOR: Superfluous arguments passed to function resolveSize (#9678)

REFACTOR: Superfluous arguments passed to function resolveSize (#9678)

resolveSize accepts only one param

diff --git a/app/assets/javascripts/pretty-text/oneboxer.js b/app/assets/javascripts/pretty-text/oneboxer.js
index 0341205..f5faf56 100644
--- a/app/assets/javascripts/pretty-text/oneboxer.js
+++ b/app/assets/javascripts/pretty-text/oneboxer.js
@@ -29,7 +29,7 @@ function resolveSize(img) {
 }
 
 // Detect square images and apply smaller onebox-avatar class
-function applySquareGenericOnebox($elem, normalizedUrl) {
+function applySquareGenericOnebox($elem) {
   if (!$elem.hasClass("whitelistedgeneric")) {
     return;
   }
@@ -43,10 +43,10 @@ function applySquareGenericOnebox($elem, normalizedUrl) {
   }
 
   if (img.complete) {
-    resolveSize(img, $elem, normalizedUrl);
+    resolveSize(img);
   } else {
     $img.on("load.onebox", () => {
-      resolveSize(img, $elem, normalizedUrl);
+      resolveSize(img);
       $img.off("load.onebox");
     });
   }

GitHub sha: e74170cd

This commit appears in #9678 which was approved by eviltrout. It was merged by jjaffeux.