Fix comment tag values
This commit is contained in:
@@ -121,6 +121,7 @@ export const INBOX_RELAYS = 10050
|
||||
export const FILE_SERVERS = 10096
|
||||
export const LIGHTNING_PUB_RPC = 21000
|
||||
export const CLIENT_AUTH = 22242
|
||||
export const BLOSSOM_AUTH = 24242
|
||||
export const AUTH_JOIN = 28934
|
||||
export const AUTH_INVITE = 28935
|
||||
export const WALLET_INFO = 13194
|
||||
|
||||
@@ -62,7 +62,7 @@ export const getCommentTags = (tags: string[][]) => {
|
||||
}
|
||||
|
||||
export const getCommentTagValues = (tags: string[][]) =>
|
||||
mapVals(tags => tags.map(nth(1)), getCommentTags(tags))
|
||||
mapVals(tags => tags.filter(t => ['a', 'e'].includes(t[0].toLowerCase())).map(nth(1)), getCommentTags(tags))
|
||||
|
||||
export const getReplyTags = (tags: string[][]) => {
|
||||
const validTags = tags.filter(t => ["a", "e", "q"].includes(t[0]))
|
||||
|
||||
Reference in New Issue
Block a user