this repo has no description

fix: incr the atproto prefix, not the collection

+1 -1
+1 -1
cmd/bsky-activity/main.go
··· 94 94 // if collection starts with one of the Atproto allowlist keys, incr 95 95 for k, _ := range AtprotoAllowlist { 96 96 if strings.HasPrefix(collection, k) { 97 - ckey := strings.ReplaceAll(collection, ".", "_") 97 + ckey := strings.ReplaceAll(k, ".", "_") 98 98 if err := pipe.Incr(ctx, "dev.edavis.atproto.collection."+ckey); err != nil { 99 99 log.Printf("failed incrementing an atproto collection: %v\n", err) 100 100 }