nip34: return events, not pointer to events.

This commit is contained in:
fiatjaf
2025-11-14 12:08:47 -03:00
parent 4b2cec9c6d
commit 017e4aea11
2 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ func ParseRepository(event nostr.Event) Repository {
return repo
}
func (r Repository) ToEvent() *nostr.Event {
func (r Repository) ToEvent() nostr.Event {
tags := make(nostr.Tags, 0, 10)
tags = append(tags, nostr.Tag{"d", r.ID})
@@ -88,7 +88,7 @@ func (r Repository) ToEvent() *nostr.Event {
tags = append(tags, tag)
}
return &nostr.Event{
return nostr.Event{
Kind: nostr.KindRepositoryAnnouncement,
Tags: tags,
CreatedAt: nostr.Now(),