William Casarin
139be9eef2
Fix nostr: mention prefix bugs
...
The zero-width space was causing parsing issues. Not sure why we need
this so I just removed it.
Changelog-Fixed: Fix nostr:nostr:... bugs
2023-07-14 17:28:24 -07:00
William Casarin
7fc270725f
test: add newline mention test
...
This is currently passing but it shouldn't be. This is because we are
not testing the build_post function directly. We will do this soon.
2023-07-13 07:32:27 -07:00
William Casarin
db2ec0a00a
Fix npub mention bugs, fix slowness when parsing large posts
...
Switch the post parser to use the same code as the content parser. This
was causing many issues, including performance issues.
Changelog-Fixed: Fix lag when creating large posts
Changelog-Fixed: Fix npub mentions failing to parse in some cases
Changelog-Added: Add r tag when mentioning a url
Changelog-Removed: Remove old @ and & hex key mentions
2023-07-11 09:15:13 -07:00
William Casarin
374610a21a
artifacts: allow unseparated note artifacts
...
This is needed for longform events. Right now we treat unseparated note
artifacts as a list of blocks, but we will likely need to render these
blocks into lists of attributed texts with image blocks inbetween.
2023-07-10 18:24:43 -07:00
Terry Yiu
14977fe3dd
Replace indexed mentions with NIP-27
...
Changelog-Fixed: Replace indexed mentions with NIP-27
Closes : #1213
2023-06-07 06:22:38 +02:00
William Casarin
e8d63768c1
Fix note mention test
2023-04-11 10:27:11 -07:00
William Casarin
0866c70346
Fix tests
2023-04-10 16:09:43 -07:00
Pablo Fernandez
205774f684
Fix when calling parse_hex_char out of bounds
...
Closes : #158
Changelog-Fixed: Fix crash with @ sign in some posts
2022-12-28 12:44:47 -08:00
William Casarin
c6ab1de639
Add bolt11 parser and Invoice View
...
Changelog-Added: Display bolt11 invoice widgets on posts
2022-10-19 07:46:05 -07:00
William Casarin
eb99e6c323
Rewrite note parsing in C
...
This eliminates any parsing choppyness
Fixes : #32
Signed-off-by: William Casarin <jb55@jb55.com>
2022-10-17 15:22:28 -07:00
William Casarin
a47645929e
Inline image loading
...
Changelog-Added: Added inline image loading
Signed-off-by: William Casarin <jb55@jb55.com>
2022-10-16 16:11:27 -07:00
William Casarin
df5d6557f2
add link test
...
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-07 19:31:02 -07:00
William Casarin
61f5d1009e
mentions: fix bech32 mentions at end
...
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-07 07:09:11 -07:00
William Casarin
adacdbb764
switch to bech32 everywhere
...
You can now use @npub, @note or @nsec to reference notes and pubkeys
Changelog-Changed: use bech32 ids everywhere
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-06 23:01:56 -07:00
William Casarin
e6db7369cd
Fix hashtag parsing
...
Changelog-Fixed: No longer parse hashtags in urls
Signed-off-by: William Casarin <jb55@jb55.com>
2022-07-28 13:11:58 -07:00
William Casarin
2fc6e7ef22
fix parsing mention indices > 9
...
Signed-off-by: William Casarin <jb55@jb55.com>
2022-06-06 08:55:32 -07:00
William Casarin
cf7cba09bd
parse hashtags
...
Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-08 20:34:57 -07:00
William Casarin
812abba8d4
fix incredible bug lol
...
Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-08 19:31:40 -07:00
William Casarin
5e63eca0e9
simplify like refs
...
Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-08 19:01:42 -07:00