Füge E-Mail-Benachrichtigungen für Sperrungen und zeitlich begrenzte Sperrungen hinzu
This commit is contained in:
@@ -21,19 +21,14 @@ export const getPublicUser = (
|
||||
ignorePrivacy: false,
|
||||
},
|
||||
): PublicUser => {
|
||||
const lastName = user.lastname
|
||||
.split(" ")
|
||||
.map((part) => `${part[0]}.`)
|
||||
.join(" ");
|
||||
return {
|
||||
firstname: user.firstname,
|
||||
lastname:
|
||||
user.settingsHideLastname && !options.ignorePrivacy
|
||||
? ""
|
||||
: user.lastname
|
||||
.split(" ")
|
||||
.map((part) => `${part[0]}.`)
|
||||
.join(" "), // Only take the first part of the name
|
||||
fullName: `${user.firstname} ${user.lastname
|
||||
.split(" ")
|
||||
.map((part) => `${part[0]}.`)
|
||||
.join(" ")}`,
|
||||
lastname: user.settingsHideLastname && !options.ignorePrivacy ? "" : lastName, // Only take the first letter of each section of the last name
|
||||
fullName: `${user.firstname} ${lastName}`,
|
||||
publicId: user.publicId,
|
||||
badges: user.badges,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user