fiatjaf
6275f52134
support hyperloglog handlers on COUNT.
v0.12.2
2024-12-07 00:26:22 -03:00
fiatjaf
5b88b9b087
small tweaks to nip86 authorization flow and use rl.ServiceURL.
v0.12.1
2024-11-25 14:11:27 -03:00
Your Name
1b4d81dde4
corrects malformed json in blossom list
v0.12.0
2024-11-22 10:03:50 -03:00
Anthony Accioly
7bfdbb557c
fix(blossom): use io.ReadSeeker in Blossom example
...
This should fix the failing pipeline test
2024-11-22 07:54:57 -03:00
girino
3f26a1f727
Change API of LoadBlob to return io.ReadSeeker instead of io.Reader and use ServeContent to serve blob content ( #19 )
...
* first test with http.ServeContent
* added debug to help me here
* removed debug messages
* changed LoadBlob to requisre io.ReadSeeker
---------
Co-authored-by: Your Name <you@example.com>
2024-11-21 11:58:12 -03:00
fiatjaf_
76ecf4f791
Merge pull request #17 from aaccioly-open-source/feature/bud01-cors-support
...
Optimised CORS Headers + Small fixes
v0.11.0
2024-11-05 22:59:18 -03:00
Anthony Accioly
1498da09c8
refactor(blossom): remove setCors function
2024-11-05 19:04:41 +00:00
Anthony Accioly
3d4dd71510
refactor(blossom): undo enhanced routing
2024-11-05 18:55:47 +00:00
Anthony Accioly
582a74c000
refactor: apply CORS rules on relay
2024-11-05 18:37:12 +00:00
Anthony Accioly
bbcf948dd6
fix(blossom): forward requests to base relay
2024-11-05 17:56:56 +00:00
Anthony Accioly
553d848362
fix(policies): update check for ephemeral kinds
...
The Event.IsEphemeral method has been removed from go-nostr
2024-11-05 17:32:56 +00:00
Anthony Accioly
2a80d4099d
perf(blossom): set Access-Control-Max-Age to 24 h
2024-11-05 16:56:59 +00:00
Anthony Accioly
ad6635d86c
refactor(blossom): use Go 1.22 enhanced routing
2024-11-05 16:48:21 +00:00
Anthony Accioly
c93441cd63
feat(blossom): use rs/cors to handle BUD-01 CORS
2024-11-04 17:18:37 +00:00
Anthony Accioly
dc34dd7e90
build(deps): bump rs/cors version to v1.11.1
2024-11-04 14:02:18 +00:00
Anthony Accioly
a004f59187
fix(blossom): Example returns io.Reader
2024-11-04 13:56:13 +00:00
fiatjaf
a931a83370
fix negentropy by making special provisions for bypassing query limits.
2024-11-03 16:57:18 -03:00
Anthony Accioly
1c15db2ca1
fix(blossom): CORS headers required by noStrudel
2024-10-31 07:50:34 -03:00
fiatjaf
b617fea679
blossom: again a bunch of fixes. require Authorization on /upload again always.
v0.10.0
2024-10-29 16:32:53 -03:00
fiatjaf
1d7bdccb3a
blossom: fixes and updates from trying to use it.
2024-10-29 09:01:19 -03:00
fiatjaf
92d1a5b671
blossom: implement bud06 (upload requirements).
2024-10-29 09:01:16 -03:00
fiatjaf
7f878121fc
blossom: return code from Reject* functions because HTTP is stupid.
2024-10-29 09:01:13 -03:00
fiatjaf
a893dc2d2c
blossom: store as a standalone interface (and an eventstore wrapper).
2024-10-29 09:01:04 -03:00
fiatjaf
91e7737ec1
basic modular blossom support.
2024-10-27 17:20:10 -03:00
fiatjaf
1dc12e5d2e
support negentropy.
v0.9.1
2024-10-26 23:41:39 -03:00
fiatjaf
f3b18619c7
update eventstore just so badger and ristretto are the same everywhere, who knows what the package manager will do.
v0.9.0
2024-10-23 23:17:50 -03:00
fiatjaf
902e882d97
policies: RestrictToSpecifiedKinds() to allow ephemeral.
2024-10-22 13:32:24 -03:00
fiatjaf
8f62b2fbbe
policies.PreventLargeTags() example was too strict for "a" tags.
2024-10-21 08:53:37 -03:00
fiatjaf
d4334ac2bb
revert "a function to send an event directly to a specific connection."
...
this reverts commit e9c9d0c3a7b6ace94cd40e04d74e4ffd31b6b898 because it is not a good idea and probably useless.
v0.8.4
2024-10-16 15:07:55 -03:00
fiatjaf
9069341657
a context that is canceled whenever a websocket is dropped.
2024-10-16 15:06:47 -03:00
fiatjaf
9137eb02b0
cookbook: reacting to auth events.
2024-10-14 12:20:46 -03:00
fiatjaf
e9c9d0c3a7
a function to send an event directly to a specific connection.
2024-10-13 12:42:36 -03:00
fiatjaf
39d882857c
fix missing ! in CheckID()
2024-09-25 14:34:04 -03:00
ptrio42 aka pitiunited
6e04cca511
Update use-cases.md
2024-09-25 08:01:35 -03:00
fiatjaf
cc891d06ed
update go-nostr and make checkid faster.
v0.8.2
2024-09-24 19:04:18 -03:00
fiatjaf
08be77b914
empty filters are not insane.
2024-09-24 19:01:57 -03:00
fiatjaf
e25400a61a
actually we don't need all that fluff.
2024-09-16 17:39:54 -03:00
fiatjaf
635e91f360
policies: shoehorn an iterator in a xsync map Range().
2024-09-16 15:59:08 -03:00
kehiy
eb92c2aac5
make check id more simple.
2024-09-14 10:21:47 -03:00
fiatjaf
18fc0dc1dd
ensure AddEvent contexts get cleaned so store queries aren't left half-read.
...
similar to 1196fabb86
2024-09-12 22:33:57 -03:00
fiatjaf
6d827ac89a
return blank IP and do not rate-limit when calling AddEvent().
2024-09-11 23:02:01 -03:00
fiatjaf
b8bb58f77c
sane defaults: increase initial connections limit burst.
v0.8.1
2024-09-11 08:00:39 -03:00
fiatjaf
79eaedcffe
remove useless boolean comparison.
2024-09-05 14:38:59 -03:00
fiatjaf
aa2ac552ea
support deleting "a" references.
v0.8.0
2024-08-28 09:30:27 -03:00
Barry Deen
4e2b921af9
fix typo in nip42 docs
2024-08-25 16:23:26 -03:00
fiatjaf
cf98cfc6d8
update xsync.
2024-08-24 07:17:07 -03:00
fiatjaf
62a3b9b7d9
docs: remove mention to bolt.
2024-08-24 07:16:52 -03:00
fiatjaf
e8637afa38
policies: timestamps policies take time.Duration
v0.7.6
2024-08-20 10:40:29 -03:00
fiatjaf
e38036a5e6
add a sample to docs landing page.
2024-08-20 08:01:37 -03:00
fiatjaf
6a9dcdcbd4
add a fuzz test.
v0.7.5
2024-08-14 09:30:02 -03:00