Fetch user relays, synchronously

This commit is contained in:
2024-10-12 12:45:50 +02:00
parent 9e3652479b
commit a08a4746f7
3 changed files with 96 additions and 0 deletions

View File

@@ -19,4 +19,8 @@ class NostrManagerService < ApplicationService
def site_user
Nostr::User.new(keypair: site_keypair)
end
def new_relay(url)
Nostr::Relay.new(url: url, name: URI.parse(url).host)
end
end