WIP fetch relays and profile with ruby

This commit is contained in:
2024-10-16 13:32:15 +02:00
parent a08a4746f7
commit 5283f6fce7
4 changed files with 57 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ require "nostr"
class NostrManagerService < ApplicationService
def parse_tags(tags)
out = {}
# TODO support more than 1 item for each tag type
tags.each do |tag|
out[tag[0].to_sym] = tag[1, tag.length]
end