nostrfs: update pointer thing from nostrlib.

This commit is contained in:
fiatjaf 2025-06-08 10:50:03 -03:00
parent 239dd2d42a
commit a6509909d0
1 changed files with 2 additions and 2 deletions

View File

@ -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{