Log ignored follower

This commit is contained in:
Knut Ahlers 2020-11-20 23:29:57 +01:00
parent 2d4f0be64b
commit 1302c073cd
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -79,6 +79,7 @@ func handleWebHookPush(w http.ResponseWriter, r *http.Request) {
sort.Slice(payload.Data, func(i, j int) bool { return payload.Data[i].FollowedAt.Before(payload.Data[j].FollowedAt) }) sort.Slice(payload.Data, func(i, j int) bool { return payload.Data[i].FollowedAt.Before(payload.Data[j].FollowedAt) })
for _, f := range payload.Data { for _, f := range payload.Data {
if str.StringInSlice(f.FromName, store.Followers.Seen) { if str.StringInSlice(f.FromName, store.Followers.Seen) {
logger.WithField("name", f.FromName).Debug("New follower already known, skipping")
continue continue
} }