Skip to content

Commit

Permalink
cmd/amano: add bluesky commit collections
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Oct 26, 2024
1 parent 2c7072c commit cf16f61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/amano/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func handleEvent(nc *nats.Conn) func(ctx context.Context, ev *jsModels.Event) er
m := nats.NewMsg(subject)
m.Data = data
m.Header.Set("bsky-actor-did", ev.Did)
m.Header.Set("bsky-commit-collection", ev.Commit.Collection)

if err := nc.PublishMsg(m); err != nil {
return fmt.Errorf("can't publish %q event: %w", subject, err)
Expand Down

0 comments on commit cf16f61

Please sign in to comment.