mirror of https://github.com/fiatjaf/nak.git
nostrfs: update pointer thing from nostrlib.
This commit is contained in:
parent
239dd2d42a
commit
a6509909d0
|
@ -175,7 +175,7 @@ func (r *NostrRoot) CreateEventDir(
|
||||||
|
|
||||||
if event.Kind == 1 {
|
if event.Kind == 1 {
|
||||||
if pointer := nip10.GetThreadRoot(event.Tags); pointer != nil {
|
if pointer := nip10.GetThreadRoot(event.Tags); pointer != nil {
|
||||||
nevent := nip19.EncodePointer(*pointer)
|
nevent := nip19.EncodePointer(pointer)
|
||||||
h.AddChild("@root", h.NewPersistentInode(
|
h.AddChild("@root", h.NewPersistentInode(
|
||||||
r.ctx,
|
r.ctx,
|
||||||
&fs.MemSymlink{
|
&fs.MemSymlink{
|
||||||
|
@ -185,7 +185,7 @@ func (r *NostrRoot) CreateEventDir(
|
||||||
), true)
|
), true)
|
||||||
}
|
}
|
||||||
if pointer := nip10.GetImmediateParent(event.Tags); pointer != nil {
|
if pointer := nip10.GetImmediateParent(event.Tags); pointer != nil {
|
||||||
nevent := nip19.EncodePointer(*pointer)
|
nevent := nip19.EncodePointer(pointer)
|
||||||
h.AddChild("@parent", h.NewPersistentInode(
|
h.AddChild("@parent", h.NewPersistentInode(
|
||||||
r.ctx,
|
r.ctx,
|
||||||
&fs.MemSymlink{
|
&fs.MemSymlink{
|
||||||
|
|
Loading…
Reference in New Issue