only replace note ID when note ID starts with @ character #441

Merged
SamSamskies merged 5 commits from fix-posting-notes-with-note1-nip19-links into main 2023-03-16 01:02:54 +00:00
SamSamskies commented 2023-03-14 20:40:50 +00:00 (Migrated from github.com)

resolves https://github.com/v0l/snort/issues/440

Screenshot 2023-03-14 at 3 39 16 PM

{
  "id": "d098bbfc7fb36cc5204012ad5db7b624e77f934f98cfd39301409c7838e0cca3",
  "pubkey": "03e20803e8917f3ba4e029e6fcd2a3c1b97cdd7c691119c1bdf4bb7543e4e1c1",
  "created_at": 1678826024,
  "kind": 1,
  "tags": [
    [
      "e",
      "d5dc392fc5b381c526182ffdfda0ddfc4eca0b67eedbb4179bfc9f1d9bb3c7c0",
      "",
      "mention"
    ]
  ],
  "content": "Note IDs should be replaced with a tag: \n#[0]\nOther text such as link that contain note IDs should not be replaced with a tag:\n\nhttps://snort.social/e/note16hwrjt79kwqu2fsc9l7lmgxal38v5zm8amdmg9umlj03mxanclqqn7k634\n\n",
  "sig": "4e5166ff2a0a78679b01b1e71c35522cbfc481bfa76336f0ca9b938ced463a918e29966ea3d39745bc0a550ace4f1dc7ea0c46c20cace5e83f9843590707b8a4",
  "relays": [
    "wss://nostr-relay.alekberg.net"
  ]
}
resolves https://github.com/v0l/snort/issues/440 ![Screenshot 2023-03-14 at 3 39 16 PM](https://user-images.githubusercontent.com/3655410/225131160-8bdd6416-c4b9-4e5a-aa57-1d4b578794b2.png) ```json { "id": "d098bbfc7fb36cc5204012ad5db7b624e77f934f98cfd39301409c7838e0cca3", "pubkey": "03e20803e8917f3ba4e029e6fcd2a3c1b97cdd7c691119c1bdf4bb7543e4e1c1", "created_at": 1678826024, "kind": 1, "tags": [ [ "e", "d5dc392fc5b381c526182ffdfda0ddfc4eca0b67eedbb4179bfc9f1d9bb3c7c0", "", "mention" ] ], "content": "Note IDs should be replaced with a tag: \n#[0]\nOther text such as link that contain note IDs should not be replaced with a tag:\n\nhttps://snort.social/e/note16hwrjt79kwqu2fsc9l7lmgxal38v5zm8amdmg9umlj03mxanclqqn7k634\n\n", "sig": "4e5166ff2a0a78679b01b1e71c35522cbfc481bfa76336f0ca9b938ced463a918e29966ea3d39745bc0a550ace4f1dc7ea0c46c20cace5e83f9843590707b8a4", "relays": [ "wss://nostr-relay.alekberg.net" ] } ```
cloudflare-pages[bot] commented 2023-03-14 20:41:02 +00:00 (Migrated from github.com)

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3103a0c
Status:   Deploy successful!
Preview URL: https://505178b8.snort-social.pages.dev
Branch Preview URL: https://fix-posting-notes-with-note1.snort-social.pages.dev

View logs

## Deploying with &nbsp;<a href="https://pages.dev"><img alt="Cloudflare Pages" src="https://user-images.githubusercontent.com/23264/106598434-9e719e00-654f-11eb-9e59-6167043cfa01.png" width="16"></a> &nbsp;Cloudflare Pages <table><tr><td><strong>Latest commit:</strong> </td><td> <code>3103a0c</code> </td></tr> <tr><td><strong>Status:</strong></td><td>&nbsp;✅&nbsp; Deploy successful!</td></tr> <tr><td><strong>Preview URL:</strong></td><td> <a href='https://505178b8.snort-social.pages.dev'>https://505178b8.snort-social.pages.dev</a> </td></tr> <tr><td><strong>Branch Preview URL:</strong></td><td> <a href='https://fix-posting-notes-with-note1.snort-social.pages.dev'>https://fix-posting-notes-with-note1.snort-social.pages.dev</a> </td></tr> </table> [View logs](https://dash.cloudflare.com/?to=/:account/pages/view/snort-social/505178b8-c07d-4c12-a4f6-a9bdcc93d318)
SamSamskies commented 2023-03-14 20:51:23 +00:00 (Migrated from github.com)

actually new lines were removed when they shouldn't have been. turning back into draft.

actually new lines were removed when they shouldn't have been. turning back into draft.
v0l (Migrated from github.com) reviewed 2023-03-15 13:49:20 +00:00
SamSamskies (Migrated from github.com) reviewed 2023-03-15 14:03:40 +00:00
v0l (Migrated from github.com) reviewed 2023-03-15 14:07:35 +00:00
v0l (Migrated from github.com) reviewed 2023-03-15 15:38:24 +00:00
SamSamskies (Migrated from github.com) reviewed 2023-03-15 18:32:36 +00:00
v0l (Migrated from github.com) reviewed 2023-03-15 19:31:30 +00:00
v0l (Migrated from github.com) approved these changes 2023-03-15 22:50:38 +00:00
Sign in to join this conversation.
No description provided.