mirror of
https://github.com/tooot-app/app
synced 2025-02-01 19:16:56 +01:00
Block cards that without properly fetched data
This commit is contained in:
parent
0d8fdf5740
commit
aa469c1174
@ -17,10 +17,14 @@ import TimelineDefault from '../../Default'
|
||||
import StatusContext from '../Context'
|
||||
import { CardNeodb } from './Neodb'
|
||||
|
||||
const CARD_URL_BLACKLISTS = ['weibo.com', 'weibo.cn']
|
||||
|
||||
const TimelineCard: React.FC = () => {
|
||||
const { status, spoilerHidden, disableDetails, inThread } = useContext(StatusContext)
|
||||
if (!status || !status.card) return null
|
||||
|
||||
if (CARD_URL_BLACKLISTS.find(domain => status.card?.url.includes(`${domain}/`))) return null
|
||||
|
||||
const { i18n } = useTranslation()
|
||||
if (
|
||||
status.card.url.includes('://neodb.social/') &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user