hzrd149 / nostrudel

A sandbox for exploring nostr
https://nostrudel.ninja/
MIT License
122 stars 34 forks source link

a-tag is missing when replying to a long-form reply #158

Open Giszmo opened 4 months ago

Giszmo commented 4 months ago

In the context of replaceable events, replies to those should not (only) reference the event-id as root but (also) the replaceable event using an a-tag.

People replying to habla.news replies using nostrudel end up with a missing anchor for the conversation and of course, the long-form content ends up with missing replies.

So when replying to

{
  "id": "bf3587a5553f442e92105b32d8a031f8ab365d3a040f5cfc115f5701d812f222",
  "kind": 1,
  "tags": [
    [
      "e",
      "bdf141be083400d5ba4ad5a900aad11cbec0b5943cfe63b33b429903d672cad0",
      "wss://nostr.mom/",
      "reply"
    ],
    [
      "a",
      "30023:46fcbe3065eaf1ae7811465924e48923363ff3f526bd6f73d7c184b16bd8ce4d:android/com.samourai.wallet",
      "wss://nostr.mom/",
      "reply"
    ],
    [
      "p",
      "001892e9b48b430d7e37c27051ff7bf414cbc52a7f48f451d857409ce7839dde",
      "wss://nostr-pub.wellorder.net/",
      "nopara73"
    ]
  ]
}

it should add the a-tag to avoid the root from getting lost if it's being edited.

This is a reply on a thread with the root being edited. As relays delete the event-id, no njump can help the user.