diff --git a/files/assets/js/core.js b/files/assets/js/core.js
index e9b30ff54..b5b3b0d38 100644
--- a/files/assets/js/core.js
+++ b/files/assets/js/core.js
@@ -215,8 +215,8 @@ function expandImage(url) {
url = e.target.dataset.src
if (!url) url = e.target.src
}
- document.getElementById("desktop-expanded-image").src = url.replace("200w.webp", "giphy.webp");
- document.getElementById("desktop-expanded-image-wrap-link").href = url.replace("200w.webp", "giphy.webp");
+ document.getElementById("desktop-expanded-image").src = url;
+ document.getElementById("desktop-expanded-image-wrap-link").href = url;
bootstrap.Modal.getOrCreateInstance(document.getElementById('expandImageModal')).show();
};
diff --git a/files/assets/js/gif_modal.js b/files/assets/js/gif_modal.js
index f2094afa4..90bc0ef9c 100644
--- a/files/assets/js/gif_modal.js
+++ b/files/assets/js/gif_modal.js
@@ -50,75 +50,75 @@ async function getGifs(form) {
container.innerHTML = `
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
`
}
@@ -150,7 +150,7 @@ async function searchGifs(searchTerm) {
}
else {
for (let i = 0; i < 48; i++) {
- gifURL[i] = "https://media.giphy.com/media/" + data[i].id + "/200w.webp";
+ gifURL[i] = "https://media.giphy.com/media/" + data[i].id + "/giphy.webp";
const insert = ``
container.insertAdjacentHTML('beforeend', insert);
noGIFs.innerHTML = null;
diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py
index d8a2907be..1250a92fd 100644
--- a/files/helpers/sanitize.py
+++ b/files/helpers/sanitize.py
@@ -476,8 +476,7 @@ def normalize_url(url):
.replace("https://nitter.net/", "https://twitter.com/") \
.replace("https://nitter.42l.fr/", "https://twitter.com/") \
.replace("https://nitter.lacontrevoie.fr/", "https://twitter.com/") \
- .replace("/giphy.gif", "/200w.webp") \
- .replace("/giphy.webp", "/200w.webp") \
+ .replace("/giphy.gif", "/giphy.webp")
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
url = giphy_regex.sub(r'\1.webp', url)