|
|
@ -428,15 +428,11 @@ func Initialize(apper Apper, debug bool) (*App, error) { |
|
|
|
|
|
|
|
|
|
|
|
initActivityPub(apper.App()) |
|
|
|
initActivityPub(apper.App()) |
|
|
|
|
|
|
|
|
|
|
|
if apper.App().cfg.Email.Domain != "" || apper.App().cfg.Email.MailgunPrivate != "" { |
|
|
|
if apper.App().cfg.Email.Enabled() { |
|
|
|
if apper.App().cfg.Email.Domain == "" { |
|
|
|
log.Info("Starting publish jobs queue...") |
|
|
|
log.Error("[FAILED] Starting publish jobs queue: no [letters]domain config value set.") |
|
|
|
go startPublishJobsQueue(apper.App()) |
|
|
|
} else if apper.App().cfg.Email.MailgunPrivate == "" { |
|
|
|
} else { |
|
|
|
log.Error("[FAILED] Starting publish jobs queue: no [letters]mailgun_private config value set.") |
|
|
|
log.Error("[FAILED] Starting publish jobs queue: no email provider is configured.") |
|
|
|
} else { |
|
|
|
|
|
|
|
log.Info("Starting publish jobs queue...") |
|
|
|
|
|
|
|
go startPublishJobsQueue(apper.App()) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Handle local timeline, if enabled
|
|
|
|
// Handle local timeline, if enabled
|
|
|
|