Whalebird-desktop-client-ma.../src/renderer/utils/quoteSupported.ts

14 lines
327 B
TypeScript
Raw Normal View History

2020-08-21 04:20:43 +02:00
import { QuoteSupportMastodon } from '~/src/constants/servers/quote'
const quoteSupported = (sns: 'mastodon' | 'pleroma' | 'misskey', domain: string): boolean => {
if (sns === 'misskey') {
return true
}
if (QuoteSupportMastodon.includes(domain)) {
return true
}
return false
}
export default quoteSupported