feat: note mentions #125

Merged
verbiricha merged 3 commits from nip08 into main 2023-01-23 17:22:48 +00:00
verbiricha commented 2023-01-23 15:34:03 +00:00 (Migrated from github.com)
No description provided.
cloudflare-pages[bot] commented 2023-01-23 15:34:32 +00:00 (Migrated from github.com)

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 609704c
Status:   Deploy successful!
Preview URL: https://5b8f11d0.snort-social.pages.dev
Branch Preview URL: https://nip08.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>609704c</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://5b8f11d0.snort-social.pages.dev'>https://5b8f11d0.snort-social.pages.dev</a> </td></tr> <tr><td><strong>Branch Preview URL:</strong></td><td> <a href='https://nip08.snort-social.pages.dev'>https://nip08.snort-social.pages.dev</a> </td></tr> </table> [View logs](https://dash.cloudflare.com/?to=/:account/pages/view/snort-social/5b8f11d0-2def-4cef-8ae2-6801675167dc)
v0l (Migrated from github.com) approved these changes 2023-01-23 15:36:05 +00:00
@ -65,1 +73,4 @@
const content = msg.replace(/@npub[a-z0-9]+/g, replaceNpub)
.replace(/note[a-z0-9]+/g, replaceNoteId)
.replace(HashtagRegex, replaceHashtag);
ev.Content = content;
v0l (Migrated from github.com) commented 2023-01-23 15:35:59 +00:00

Technically incorrect regex but i guess its fine as the try/catch will fallback

Technically incorrect regex but i guess its fine as the try/catch will fallback
v0l (Migrated from github.com) requested changes 2023-01-23 15:37:08 +00:00
v0l (Migrated from github.com) commented 2023-01-23 15:37:03 +00:00

Missing "mention" marker

Missing "mention" marker
v0l (Migrated from github.com) requested changes 2023-01-23 15:51:29 +00:00
v0l (Migrated from github.com) commented 2023-01-23 15:51:25 +00:00

The mention marker comes after the relay hint it should be ["e", hex, "", "mention"]

The mention marker comes after the relay hint it should be `["e", hex, "", "mention"]`
v0l (Migrated from github.com) approved these changes 2023-01-23 17:22:38 +00:00
Sign in to join this conversation.
No description provided.