Add helper method for parsing nostr event tags
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user