git: fix first publishing of a new repository announcement.

This commit is contained in:
fiatjaf
2026-03-04 16:01:22 -03:00
parent 0735ded0fc
commit d61fdc4cb4

2
git.go
View File

@@ -1009,7 +1009,7 @@ func gitSync(ctx context.Context, signer nostr.Keyer) (nip34.Repository, *nip34.
repo = localRepo
}
for res := range sys.Pool.PublishMany(ctx, relays, *upToDateAnnouncementEvent) {
for res := range sys.Pool.PublishMany(ctx, relays, event) {
if res.Error != nil {
log("! error publishing to %s: %v\n", color.YellowString(res.RelayURL), res.Error)
} else {