fiatjaf
248f9577e9
make reference tags clickable in json view.
2024-09-11 16:29:24 -03:00
fiatjaf
4011528058
refactor so embedded note and profile are rendered similarly to their non-embedded versions.
2024-08-03 14:26:57 -03:00
fiatjaf
0dd8c38a95
remove opentelemetry.
2024-08-02 15:41:29 -03:00
fiatjaf
1f1b72a00a
slightly better replaceNostrURLsWithHTMLTags() and renderQuotesAsHTML().
2024-08-02 15:34:09 -03:00
fiatjaf
588e79032c
fix concurrent map write on replaceNostrURLsWithHTMLTags().
2024-08-02 15:08:12 -03:00
fiatjaf
c0004f67a2
fix slowness of previous refactors that injected nostr-sdk into this codebase + refactors.
...
- adjusting many small things related to nostr-sdk usage
- fetching profiles in a smarter way
- decoupling the logic for rendering profile pages from the `grabData`/`getEvent` flow of other event pages.
- incorporating nostr-sdk more holistically, including more hints stuff
- improving nostr-sdk itself after some bugs and weird behaviors observed here
- set up opentelemetry (should probably remove this later)
2024-08-02 12:48:58 -03:00
fiatjaf
56b3919d4e
use new nostr-sdk with hints (full outbox) support for improved event fetching that hopefully works.
2024-07-27 22:58:10 -03:00
dtonon
7540573d17
Link kind:30818 to NIP-54 / Wiki article
2024-07-25 17:05:42 +02:00
fiatjaf
20eaec8c48
replace SocialMediaPosting with Article on microdata.
2024-06-19 22:09:16 -03:00
fiatjaf
cf6032ea7b
porn detector.
2024-06-17 15:53:27 -03:00
dtonon
d7bdded88f
Filter out iframe tag on markdown rendering
2024-06-13 23:32:27 +02:00
dtonon
93b9748ca4
Avoid false positive in rendering of mentions
2024-06-13 23:32:27 +02:00
fiatjaf
aeb98ca535
schema.org things.
2024-06-11 09:12:18 -03:00
dtonon
cae76d1168
Show correct datetime in relation to time zone
2024-06-07 12:35:36 +02:00
dtonon
adc031917a
Fix mention of long format notes
2024-06-07 12:33:54 +02:00
mattn
1019fef1d3
Relay config by json ( #47 )
...
* relay-config.json
* fix README.md
* trustedPubKeys is not relay configuration
* update README.md
2024-02-17 14:05:22 -03:00
fiatjaf
4dda52cfb9
use stdlib "slices" and updated eventstore for badger possible fix.
2024-02-08 16:32:08 -03:00
fiatjaf
b551f30efb
stop overwriting expiration times so eventually everything will be deleted.
2024-01-28 07:23:25 -03:00
fiatjaf
8403f6e129
massive template refactoring and cleanup.
2024-01-10 14:19:43 -03:00
fiatjaf
f1472b90a6
moving some code around to show a "(reply)" on opengraph subscripts.
2024-01-08 16:39:03 -03:00
fiatjaf
5882462547
hlSkip and stop using @ prefix on names.
2024-01-02 10:06:44 -03:00
fiatjaf
c073d6e57c
snake case to camel case in some places.
2024-01-02 09:26:41 -03:00
fiatjaf
5bc8b5bbde
@-prefixed and highlighted mentions in text images.
2023-12-31 14:38:32 -03:00
Daniele Tonon
8d6b3f5cd9
Merge branch 'use-go-text-typesetting'
2023-12-29 13:42:53 +01:00
fiatjaf
a500e7bb79
add cyrillic and make latin/unknown be just the fallback, not compete against other scripts in the identification race.
2023-12-27 20:57:45 -03:00
fiatjaf
1022fb76fa
successfully mixing in a normal font + the emoji font for some runes only through a myriad of weird hacks.
2023-12-26 22:08:24 -03:00
fiatjaf
9be417fc7c
bring in HarfbuzzShaper into code as a function so we can modify it.
2023-12-26 19:38:27 -03:00
fiatjaf
a7b56f046b
rendering everything with nice script and language detection and font-picking.
2023-12-25 23:27:23 -03:00
fiatjaf
5df944705e
use go-text/typesetting library to render text better: rendering farsi.
2023-12-25 23:27:09 -03:00
Daniele Tonon
f478d17219
Fix handling of ?/# separators in media regexps
2023-12-25 19:07:58 +01:00
Daniele Tonon
a95f13d176
Fix images rendering
2023-12-24 00:39:32 +01:00
fiatjaf
ba15931747
stop excluding wss://relay.noswhere.com since it is perfectly fine for nip19.
2023-12-23 18:28:50 -03:00
fiatjaf
f79cb1e9a2
get rid of shouldUseRelayForNip19(), use isntRealRelay().
2023-12-23 18:28:23 -03:00
fiatjaf
a4754f96f1
explicit links to mobile clients.
2023-12-13 15:12:29 +01:00
fiatjaf
622dc356fa
fix unique() for empty slices.
2023-12-04 15:15:48 -03:00
fiatjaf
bd67496baf
use noswhere relay as a source for profiles and random ids (@semisol).
2023-12-02 19:44:04 -03:00
fiatjaf
98ac4f6855
use primal relay as event source by id and filter out "virtual" relays from being returned or added to hints.
2023-11-30 12:19:50 -03:00
fiatjaf
8a2fa69cb9
refactor unique() to be faster.
2023-11-30 12:19:49 -03:00
Daniele Tonon
8a99017259
Add an option to basicFormatting to skip links
...
SQUASH
2023-11-28 20:14:22 +01:00
Daniele Tonon
b8345f9176
Add RSS for profiles and relays
2023-11-16 22:58:40 +01:00
fiatjaf
6b810d5ed1
fix quoted videos for telegram instant view too, like images.
2023-11-15 14:43:58 -03:00
fiatjaf
929307f3ba
move markdown stuff to its own file and simplify code a bit.
2023-11-12 18:11:14 -03:00
Daniele Tonon
76f01721fc
Review design for linked entities
2023-11-08 23:07:03 +01:00
Daniele Tonon
800bc56796
Review design for mentioned notes
2023-11-08 23:07:03 +01:00
fiatjaf
08b07227eb
fix getParentNevent()
...
this would panic if we didn\'t have any relays in data.relays for the child.
but also I think it wasn't a good idea to give spurious hints in the nevent.
either we have good hints or we don't.
2023-11-08 18:51:25 -03:00
fiatjaf
0b6a4838c5
getRelay() -> getRandomRelay()
2023-11-07 17:03:44 -03:00
Daniele Tonon
96da7ab72c
Fix and improve getParentNevent()
2023-11-07 17:44:28 +01:00
Daniele Tonon
12c1bebf99
Add support for live chat message, kind:1311
2023-11-07 15:13:05 +01:00
fiatjaf
9f0b3fa4af
use naddr as code in client urls when param-replaceable and fix relay filtering for nip19.
...
fixes https://github.com/fiatjaf/njump/issues/14
2023-11-07 09:14:45 -03:00
Daniele Tonon
b5a4cfdfdb
Add support for live events, kind:30311
2023-11-06 23:28:20 +01:00