init (#20881)
This commit is contained in:
@@ -147,6 +147,14 @@
|
||||
text = text.replaceAll('{{USER_NAME}}', name);
|
||||
}
|
||||
|
||||
if (text.includes('{{USER_EMAIL}}')) {
|
||||
const email = sessionUser?.email || '';
|
||||
|
||||
if (email) {
|
||||
text = text.replaceAll('{{USER_EMAIL}}', email);
|
||||
}
|
||||
}
|
||||
|
||||
if (text.includes('{{USER_BIO}}')) {
|
||||
const bio = sessionUser?.bio || '';
|
||||
|
||||
|
||||
@@ -221,6 +221,14 @@
|
||||
text = text.replaceAll('{{USER_NAME}}', name);
|
||||
}
|
||||
|
||||
if (text.includes('{{USER_EMAIL}}')) {
|
||||
const email = sessionUser?.email || '';
|
||||
|
||||
if (email) {
|
||||
text = text.replaceAll('{{USER_EMAIL}}', email);
|
||||
}
|
||||
}
|
||||
|
||||
if (text.includes('{{USER_BIO}}')) {
|
||||
const bio = sessionUser?.bio || '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user