fix verifying pleroma urls

This commit is contained in:
Lauren Liberda 2021-12-15 19:30:02 +01:00
parent 967b7fe3dd
commit 845d3624b2
No known key found for this signature in database
GPG Key ID: 734C629FD04BD319
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ export const socialProviders = {
mastodon: {
name: 'Mastodon',
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: {
name: 'Twitter',