tangled
alpha
login
or
join now
edavis.dev
/
bsky-tools
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
fix: incr the atproto prefix, not the collection
Eric Davis
1 year ago
0cd643f3
6baace72
+1
-1
1 changed file
expand all
collapse all
unified
split
cmd
bsky-activity
main.go
+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
97
-
ckey := strings.ReplaceAll(collection, ".", "_")
97
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
}