mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 05:14:20 +03:00
Initial change for Social Media validation (#3819)
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
parent
56d4ac0c62
commit
4579d9074e
1 changed files with 3 additions and 0 deletions
|
@ -290,6 +290,9 @@ export default function EditSocialLinks() {
|
|||
];
|
||||
|
||||
const isValid = (url: string, platform: string) => {
|
||||
if (platform === '') {
|
||||
return false;
|
||||
}
|
||||
if (platform === 'xmpp') {
|
||||
return isValidAccount(url, 'xmpp');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue