feat: support thumbnail for twitter and discord

This commit is contained in:
Shusui MOYATANI
2024-01-15 21:26:54 +09:00
parent 15add2eeee
commit 665393f867
5 changed files with 120 additions and 33 deletions

View File

@@ -46,7 +46,12 @@ const Post: Component<PostProps> = (props) => {
{(url) => (
<LazyLoad>
{() => (
<img src={thumbnailUrl(url)} alt="icon" class="h-full w-full object-cover" />
<img
src={thumbnailUrl(url, 'icon')}
alt="icon"
referrerpolicy="no-referrer"
class="h-full w-full object-cover"
/>
)}
</LazyLoad>
)}