user-d: dont bother attempting users w no contact
This commit is contained in:
@@ -138,6 +138,10 @@ func (app *appContext) checkUsers() {
|
|||||||
|
|
||||||
if shouldContact {
|
if shouldContact {
|
||||||
name := app.getAddressOrName(user.ID)
|
name := app.getAddressOrName(user.ID)
|
||||||
|
// Skip blank contact info
|
||||||
|
if name == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
msg, err := app.email.constructUserExpired(app, false)
|
msg, err := app.email.constructUserExpired(app, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
app.err.Printf(lm.FailedConstructExpiryMessage, user.ID, err)
|
app.err.Printf(lm.FailedConstructExpiryMessage, user.ID, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user