Skip to content

Commit

Permalink
chore: revert mastodon s3 files proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
eallion committed Oct 26, 2024
1 parent 84ff28d commit 2595f33
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions layouts/_default/mastodon.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,7 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
if (src && src.includes('https://files.e5n.cc/accounts/')) {
img.setAttribute('src', '/eallion.webp');
img.setAttribute('data-original-src', src);
} else if (src && src.includes('https://files.e5n.cc/media_attachments/')) {
const newSrc = src.replace('https://files.e5n.cc/media_attachments/', 'https://mastodon-s3-files.eallion.com/media_attachments/');
img.setAttribute('src', newSrc);
img.setAttribute('data-original-src', src);
}
}
});
});

Expand Down

0 comments on commit 2595f33

Please sign in to comment.