append blossom to service url

This commit is contained in:
Barry Deen
2024-10-29 17:19:46 -04:00
parent 34ca959f9e
commit 67af27edf9

View File

@@ -231,7 +231,7 @@ func initRelays() {
)
addr := fmt.Sprintf("%s:%d", config.RelayBindAddress, config.RelayPort)
bl := blossom.New(outboxRelay, addr)
bl := blossom.New(outboxRelay, addr+"/blossom")
bl.Store = blossom.EventStoreBlobIndexWrapper{Store: outboxDB, ServiceURL: bl.ServiceURL}
bl.StoreBlob = append(bl.StoreBlob, func(ctx context.Context, sha256 string, body []byte) error {
if khatru.GetAuthed(ctx) != nPubToPubkey(config.OwnerNpub) {