12 lines
195 B
Ruby
12 lines
195 B
Ruby
require "nostr"
|
|
|
|
class NostrManagerService < ApplicationService
|
|
def parse_tags(tags)
|
|
out = {}
|
|
tags.each do |tag|
|
|
out[tag[0].to_sym] = tag[1, tag.length]
|
|
end
|
|
out
|
|
end
|
|
end
|