this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

hepa: treat empty commit as an identity event (#540)

authored by

bnewbold and committed by
GitHub
12cbabd6 a245c6aa

+8
+1
automod/keyword/slur_regex_test.go
··· 60 60 {out: "kike", text: "kike"}, 61 61 {out: "nigger", text: "niggers"}, 62 62 {out: "nigger", text: "niggers.bsky.social"}, 63 + {out: "nigger", text: "pumpkinniggah.bsky.social"}, 63 64 {out: "tranny", text: "trannie"}, 64 65 } 65 66
+7
cmd/hepa/consumer.go
··· 130 130 return nil 131 131 } 132 132 133 + // empty commit is a special case, temporarily, basically indicates "new account" 134 + if len(evt.Ops) == 0 { 135 + if err := s.engine.ProcessIdentityEvent(ctx, "create", did); err != nil { 136 + s.logger.Error("processing handle update failed", "did", evt.Repo, "rev", evt.Rev, "seq", evt.Seq, "err", err) 137 + } 138 + } 139 + 133 140 for _, op := range evt.Ops { 134 141 logger = logger.With("eventKind", op.Action, "path", op.Path) 135 142 collection, rkey, err := splitRepoPath(op.Path)