Skip to content

Commit 2595f33

Browse files
committed
chore: revert mastodon s3 files proxy
1 parent 84ff28d commit 2595f33

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

layouts/_default/mastodon.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,7 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
231231
if (src && src.includes('https://files.e5n.cc/accounts/')) {
232232
img.setAttribute('src', '/eallion.webp');
233233
img.setAttribute('data-original-src', src);
234-
} else if (src && src.includes('https://files.e5n.cc/media_attachments/')) {
235-
const newSrc = src.replace('https://files.e5n.cc/media_attachments/', 'https://mastodon-s3-files.eallion.com/media_attachments/');
236-
img.setAttribute('src', newSrc);
237-
img.setAttribute('data-original-src', src);
238-
}
234+
}
239235
});
240236
});
241237

0 commit comments

Comments
 (0)