From 38a20d022d957a15ef7ad872f0a32ed1f7f7a2ea Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 3 Feb 2021 15:16:33 -0800 Subject: [PATCH] Add support for some specific placeholders for correct social urls --- web/pages/components/config/edit-social-links.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/pages/components/config/edit-social-links.tsx b/web/pages/components/config/edit-social-links.tsx index 1dc8a0cc0..d4d431755 100644 --- a/web/pages/components/config/edit-social-links.tsx +++ b/web/pages/components/config/edit-social-links.tsx @@ -42,6 +42,11 @@ export default function EditSocialLinks() { let resetTimer = null; + const PLACEHOLDERS = { + 'mastodon': 'https://mastodon.social/@username', + 'twitter': 'https://twitter.com/username' + } + const getAvailableIcons = async () => { try { const result = await fetchData(SOCIAL_PLATFORMS_LIST, { auth: false }); @@ -267,7 +272,7 @@ export default function EditSocialLinks() {