From b6594fc0b820664894039b0e029c6d5eec8d4535 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 18 Nov 2017 16:41:27 +0100 Subject: [PATCH] Remove users without nicknames from sitemap --- assets.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets.go b/assets.go index 026f0076..3d0c57cc 100644 --- a/assets.go +++ b/assets.go @@ -84,6 +84,10 @@ func configureAssets(app *aero.Application) { prefix := "https://" + app.Config.Domain for user := range arn.StreamUsers() { + if !user.HasNick() { + continue + } + sitemap.Add(prefix + user.Link()) }