user-d: dont bother attempting users w no contact

This commit is contained in:
Harvey Tindall
2025-07-20 12:41:27 +01:00
parent 024b692b8c
commit 2190f482d1

View File

@@ -138,6 +138,10 @@ func (app *appContext) checkUsers() {
if shouldContact {
name := app.getAddressOrName(user.ID)
// Skip blank contact info
if name == "" {
continue
}
msg, err := app.email.constructUserExpired(app, false)
if err != nil {
app.err.Printf(lm.FailedConstructExpiryMessage, user.ID, err)