Fix relay profile loading, add getTopicTags, allow mapping events to multiple items
This commit is contained in:
@@ -195,6 +195,10 @@ export const getPubkeyTags = (tags: string[][]) =>
|
||||
|
||||
export const getPubkeyTagValues = (tags: string[][]) => getPubkeyTags(tags).map(nth(1))
|
||||
|
||||
export const getTopicTags = (tags: string[][]) => tags.filter(t => ["t"].includes(t[0]))
|
||||
|
||||
export const getTopicTagValues = (tags: string[][]) => getTopicTags(tags).map(nth(1))
|
||||
|
||||
export const getRelayTags = (tags: string[][]) =>
|
||||
tags.filter(t => ["r", "relay"].includes(t[0]) && isRelayUrl(t[1]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user