Fix welcomingcommittee mention link href

This commit is contained in:
apple502j 2020-06-20 16:31:01 +09:00 committed by GitHub
parent dc79eb54c3
commit 927a4b915b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ module.exports = (text, opts) => {
if (opts.usernames) { if (opts.usernames) {
replacedText = reactStringReplace(replacedText, /@([\w-]+)/g, (match, i) => ( replacedText = reactStringReplace(replacedText, /@([\w-]+)/g, (match, i) => (
<a <a
href={`/users/${match}`} href={match.toLowerCase() === 'welcomingcommittee' ? '/studios/146521/' : `/users/${match}`}
key={match + i} key={match + i}
>@{match}</a> >@{match}</a>
)); ));