Skip to content

Commit

Permalink
chore: fix tags in nip47 subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed May 31, 2024
1 parent d31875e commit c23dafc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/nostr/nostr.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,16 +495,15 @@ func (svc *Service) NIP47NotificationHandler(c echo.Context) error {
RelayUrl: requestData.RelayUrl,
WebhookUrl: requestData.WebhookUrl,
Open: true,
Since: time.Now(),
Authors: &[]string{requestData.WalletPubkey},
Kinds: &[]int{NIP_47_NOTIFICATION_KIND},
}

tags := new(nostr.TagMap)
*tags = make(nostr.TagMap)
(*tags)["p"] = []string{requestData.ConnPubkey}

subscription.Tags = tags
tags := make(nostr.TagMap)
(tags)["p"] = []string{requestData.ConnPubkey}

subscription.Tags = &tags

err := svc.db.Create(&subscription).Error

Expand Down

0 comments on commit c23dafc

Please sign in to comment.