NewGhostUser creates and returns a fake user for people who has deleted their accounts. TODO: Once migrated to unknwon.dev/i18n, pass in the `i18n.Locale` to translate the text to local language.
()
| 1457 | // TODO: Once migrated to unknwon.dev/i18n, pass in the `i18n.Locale` to |
| 1458 | // translate the text to local language. |
| 1459 | func NewGhostUser() *User { |
| 1460 | return &User{ |
| 1461 | ID: -1, |
| 1462 | Name: "Ghost", |
| 1463 | LowerName: "ghost", |
| 1464 | } |
| 1465 | } |
| 1466 | |
| 1467 | var ( |
| 1468 | reservedUsernames = map[string]struct{}{ |
no outgoing calls