mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 22:14:26 +01:00
feat: support thumbnail for twitter and discord
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user