user info: handle deleted users
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
@@ -5,6 +5,9 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func FormatFullName(first, last string) string {
|
||||
func FormatFullName(first, last string, deleted bool, userID int64) string {
|
||||
if deleted {
|
||||
return fmt.Sprintf("Deleted account %d", userID)
|
||||
}
|
||||
return strings.TrimSpace(fmt.Sprintf("%s %s", first, last))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user