Fix rebase
This commit is contained in:
@@ -29,7 +29,7 @@ export class Address {
|
||||
let type
|
||||
let data = {} as any
|
||||
try {
|
||||
;({type, data} = nip19.decode(naddr) as {
|
||||
({type, data} = nip19.decode(naddr) as {
|
||||
type: "naddr"
|
||||
data: any
|
||||
})
|
||||
|
||||
@@ -116,8 +116,6 @@ export class Tags extends (Fluent<Tag> as OmitStatics<typeof Fluent<Tag>, "from"
|
||||
return parents.get("e") || parents.get("a")
|
||||
}
|
||||
|
||||
context = () => this.whereKey("a").filter(t => t.isContext())
|
||||
|
||||
asObject = () => {
|
||||
const result: Record<string, string> = {}
|
||||
|
||||
@@ -146,14 +144,6 @@ export class Tags extends (Fluent<Tag> as OmitStatics<typeof Fluent<Tag>, "from"
|
||||
|
||||
setTag = (k: string, ...args: string[]) => this.rejectByKey([k]).addTag(k, ...args)
|
||||
|
||||
// Context
|
||||
|
||||
addContext = (addresses: string[]) => this.concat(addresses.map(a => Tag.from(["a", a])))
|
||||
|
||||
removeContext = () => this.reject(t => t.isContext())
|
||||
|
||||
setContext = (addresses: string[]) => this.removeContext().addContext(addresses)
|
||||
|
||||
// Images
|
||||
|
||||
addImages = (imeta: Tags[]) =>
|
||||
|
||||
Reference in New Issue
Block a user