fix verifying pleroma urls

This commit is contained in:
Lauren Liberda 2021-12-15 19:30:02 +01:00
parent adbd8063f3
commit 0b8da50606

View File

@ -2,7 +2,7 @@ export const socialProviders = {
mastodon: { mastodon: {
name: 'Mastodon', name: 'Mastodon',
instanceRequired: true, instanceRequired: true,
linkRegex: (p) => `^https?://(?:www.)?${p.name.split('@')[1]}/(?:web/)?@${p.name.split('@')[0]}/?$`, linkRegex: (p) => `^https?://(?:www.)?${p.name.split('@')[1]}/(?:(?:web/)?@|users/)?${p.name.split('@')[0]}/?$`,
}, },
twitter: { twitter: {
name: 'Twitter', name: 'Twitter',