From 7fa853bdb9d9f0e54e108d6f97f057b3a3277ea2 Mon Sep 17 00:00:00 2001
From: Alejandro Akbal <37181533+AlejandroAkbal@users.noreply.github.com>
Date: Thu, 7 Mar 2024 09:34:02 +0000
Subject: [PATCH 06/53] Revert "feat(posts): proxy and optimize images"
This reverts commit dac555d22d5e823daa4a4fbf836858cf778d8f2e.
---
components/pages/posts/post/Post.vue | 6 +++---
components/pages/posts/post/PostMedia.vue | 3 +--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/components/pages/posts/post/Post.vue b/components/pages/posts/post/Post.vue
index 07d480c8..5dfbc3ee 100644
--- a/components/pages/posts/post/Post.vue
+++ b/components/pages/posts/post/Post.vue
@@ -40,12 +40,12 @@
case 'image': {
// Return full image if its setting is enabled OR if low resolution file doesn't exist
if (!props.post.low_res_file.url || userSettings.postFullSizeImages) {
- data.file = 'https://imgproxy.permanent-link.com/pr:default/plain/' + props.post.high_res_file.url
+ data.file = props.post.high_res_file.url
data.width = props.post.high_res_file.width
data.height = props.post.high_res_file.height
} else {
// Return low res file
- data.file = 'https://imgproxy.permanent-link.com/pr:default/plain/' + props.post.low_res_file.url
+ data.file = props.post.low_res_file.url
data.width = props.post.low_res_file.width ?? props.post.high_res_file.width
data.height = props.post.low_res_file.height ?? props.post.high_res_file.height
}
@@ -58,7 +58,7 @@
data.width = props.post.high_res_file.width
data.height = props.post.high_res_file.height
- data.posterFile = 'https://imgproxy.permanent-link.com/pr:default/plain/' + props.post.preview_file.url
+ data.posterFile = props.post.preview_file.url
break
}
diff --git a/components/pages/posts/post/PostMedia.vue b/components/pages/posts/post/PostMedia.vue
index 0ab8c88b..bf9d71a6 100644
--- a/components/pages/posts/post/PostMedia.vue
+++ b/components/pages/posts/post/PostMedia.vue
@@ -38,8 +38,7 @@ const { isPremium } = useUserData()
return
}
- // Try to load with proxy, only videos
- if (!triedToLoadWithProxy.value && isVideo.value && isPremium.value) {
+ if (!triedToLoadWithProxy.value && isPremium.value) {
triedToLoadWithProxy.value = true
const { proxiedUrl } = useProxyHelper(localSrc.value)
From 9da43edaf829a4d8e9adf084b23c77f59b770b13 Mon Sep 17 00:00:00 2001
From: Alejandro Akbal <37181533+AlejandroAkbal@users.noreply.github.com>
Date: Thu, 7 Mar 2024 19:16:45 +0000
Subject: [PATCH 07/53] fix: newsletter
---
components/pages/home/Newsletter.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/pages/home/Newsletter.vue b/components/pages/home/Newsletter.vue
index edd5b8cb..7118e7f1 100644
--- a/components/pages/home/Newsletter.vue
+++ b/components/pages/home/Newsletter.vue
@@ -13,7 +13,7 @@