Skip to content

Commit

Permalink
Remove facebook embed
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Aug 15, 2023
1 parent 5c87cbd commit 4c2d4e7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/chats/ChatItem/Embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { LinkMetadata } from '@subsocial/api/types'
import truncate from 'lodash/truncate'
import { ComponentProps, useMemo } from 'react'
import {
FacebookEmbed,
InstagramEmbed,
TikTokEmbed,
YouTubeEmbed,
Expand Down Expand Up @@ -75,11 +74,6 @@ const urlMapper: {
checker: (link: string) =>
/(?:https?:\/\/)?(?:www\.)?(?:instagram\.com)\/(.+)/.test(link),
},
{
component: ({ link }) => <FacebookEmbed url={link} width='100%' />,
checker: (link: string) =>
/(?:https?:\/\/)?(?:www\.)?(?:facebook\.com)\/(.+)/.test(link),
},

// fallback, default link preview
{
Expand Down

0 comments on commit 4c2d4e7

Please sign in to comment.