WIP: Improve Nostr user metadata fetching

Use a multi-step process, caching results in between, while informing
the user about the current steps/progress
This commit is contained in:
2026-08-11 18:16:58 -06:00
parent 52742ba305
commit a9045fa413
9 changed files with 145 additions and 70 deletions
@@ -1,8 +1,8 @@
module NostrManager
class DiscoverUserRelays < NostrManagerService
def initialize(pubkey:)
def initialize(pubkey:, relays: nil)
@pubkey = pubkey
@relays = Setting.nostr_discovery_relays
@relays = relays.present? ? relays : Setting.nostr_discovery_relays
end
def call