This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/src/socialProviders.js

21 lines
486 B
JavaScript
Raw Normal View History

2021-12-14 06:15:27 -08:00
export const socialProviders = {
mastodon: {
name: 'Mastodon',
instanceRequired: true,
linkRegex: (p) => `^https?://(?:www.)?${p.name.split('@')[1]}/(?:web/)?@${p.name.split('@')[0]}/?$`,
},
2021-12-14 06:15:27 -08:00
twitter: {
name: 'Twitter',
linkRegex: (p) => `^https?://(?:www.)?twitter.com/${p.name}/?$`,
},
discord: {
name: 'Discord',
},
2021-12-14 06:15:27 -08:00
facebook: {
name: 'Facebook',
},
google: {
name: 'Google',
},
}