Commit Graph

  • c9a7d60543 remove event from expiration manager if it is deleted. master v0.17.6 fiatjaf 2025-04-03 23:11:47 -03:00
  • 2bb6d4d29a simplify WriteMessage, remove the defer since it's not needed. fiatjaf 2025-04-03 23:10:39 -03:00
  • 2292ce4a30 add missing return in repost protected clause. fiatjaf 2025-04-03 23:10:11 -03:00
  • 2ae219a34c add khatru.IsInternal() for dealing with internal calls specifically in QueryEvents() fiatjaf 2025-04-03 23:06:57 -03:00
  • 8c9394993b reject reposts that embed nip70 protected events. fiatjaf 2025-03-28 18:08:38 -03:00
  • 850497956c include checkid length check from @pippellia-btc v0.17.5 fiatjaf 2025-03-24 15:56:50 -03:00
  • 28ce6cfb7a ensure suspected blossom request hash does not have slashes in it andrewheadricke 2025-03-20 17:08:55 +11:00
  • f47282c745 get rid of base64x temporarily since it doesn't work on arm64. v0.17.4 fiatjaf 2025-03-19 15:02:56 -03:00
  • f72dea346f rename menu item on docs to say "blossom". fiatjaf 2025-03-17 13:38:35 -03:00
  • 51632dcc9f update blossom example to use a different database. fiatjaf 2025-03-17 13:34:35 -03:00
  • 6cc2477e89 fix blossom upload < 50bytes andrewheadricke 2025-03-14 15:14:13 +11:00
  • 581c4ece28 updating go-nostr to fix sonic parser bug. v0.17.3 fiatjaf 2025-03-14 20:10:52 -03:00
  • 596bca93c3 go-nostr MessageParser string transition. fiatjaf 2025-03-12 00:53:19 -03:00
  • 650d9209c3 policies: nip70 enforcer. v0.17.2 fiatjaf 2025-03-11 17:42:27 -03:00
  • 0d736cff82 fix blossom authorization decoder. v0.17.1 fiatjaf 2025-03-11 17:32:12 -03:00
  • 44ed6f519d use NewMessageParser() that allows sonic to be opted in with tags. fiatjaf 2025-03-11 17:32:04 -03:00
  • db832d4255 use sonic json parser and other minor performance improvements. v0.17.0 fiatjaf 2025-03-07 21:47:34 -03:00
  • 625bde38c5 update go-nostr so CountEnvelope only has one filter, which simplies COUNT handling a lot, specially with HLL. v0.16.0 fiatjaf 2025-03-07 10:11:58 -03:00
  • 7c6031f4e5 resolve relative icon and banner urls in nip11 handler. fiatjaf 2025-02-23 18:20:54 -03:00
  • 6e224b9437 nip-86: stats, grant/revoke admin, listallowedevents and listdisallowedkinds ZigBalthazar 2025-02-13 02:27:10 +03:30
  • e9030a355c nip-86: add generic handler. Kay 2025-02-09 19:54:11 +00:00
  • a6ed7bced0 do not cancel subscription context on eose, only on subscription close. fiatjaf 2025-02-09 20:46:53 -03:00
  • 31128ebd18 filter policy: MustAuth() v0.15.2 fiatjaf 2025-02-02 14:30:28 -03:00
  • 414867e62c
    feat(blossom): add bud-09 reporting handler. (#29) k. 2025-02-02 00:33:17 +03:30
  • 65383d6d65 making it a little better, so compiler wont complain. Kay 2025-01-28 15:44:42 +00:00
  • c4d9ef1025 fix(blossom): respond with 401 on missing Auth v0.15.1 Anthony Accioly 2025-01-26 17:12:16 +00:00
  • 5e5a53240a docs: fix broken links. v0.15.0 fiatjaf 2025-01-13 17:40:51 -03:00
  • 3a9c88603b add blossom page. fiatjaf 2025-01-13 17:38:10 -03:00
  • 2403f82dac improve eventstore page. fiatjaf 2025-01-13 17:37:57 -03:00
  • a289a77b6e restructure docs to have a more useful sidebar. fiatjaf 2025-01-13 17:18:56 -03:00
  • 1a03178d83 test expiration. fiatjaf 2025-01-13 17:02:15 -03:00
  • c73037ac82 test replaceable events. fiatjaf 2025-01-13 16:52:17 -03:00
  • 433cceea86 include the ReplaceEvent setup on all examples. fiatjaf 2025-01-13 16:47:21 -03:00
  • aa7422b2e4 tests for basic relay functionality. fiatjaf 2025-01-13 08:06:25 -03:00
  • d27f582a0b nip-40 expiration manager. fiatjaf 2025-01-13 00:05:41 -03:00
  • e1de0432fe fix @staab's mess. fiatjaf 2024-12-31 22:15:06 -03:00
  • 5b9b89543f Get service url when handling auth rather than mutating the relay, allow user to override service url via env var Jon Staab 2024-12-30 16:20:15 -08:00
  • 4dba9376a0 sanedefaults: allow a bigger burst of connections and events. fiatjaf 2024-12-10 23:34:18 -03:00
  • fa523a6ab9 blossom: etag and cache-control headers. fiatjaf 2024-12-09 15:41:29 -03:00
  • abbe61d128 use ReplaceEvent when available. v0.14.0 fiatjaf 2024-12-08 00:50:29 -03:00
  • e9999feec0 turns out we need to bump a version because of annoying hex nips. v0.13.0 fiatjaf 2024-12-07 07:58:20 -03:00
  • 6275f52134 support hyperloglog handlers on COUNT. v0.12.2 fiatjaf 2024-12-07 00:26:22 -03:00
  • 5b88b9b087 small tweaks to nip86 authorization flow and use rl.ServiceURL. v0.12.1 fiatjaf 2024-11-25 14:11:27 -03:00
  • 1b4d81dde4 corrects malformed json in blossom list v0.12.0 Your Name 2024-11-22 00:04:40 -03:00
  • 7bfdbb557c fix(blossom): use io.ReadSeeker in Blossom example Anthony Accioly 2024-11-21 23:02:17 +00:00
  • 3f26a1f727
    Change API of LoadBlob to return io.ReadSeeker instead of io.Reader and use ServeContent to serve blob content (#19) girino 2024-11-21 11:58:12 -03:00
  • 76ecf4f791
    Merge pull request #17 from aaccioly-open-source/feature/bud01-cors-support v0.11.0 fiatjaf_ 2024-11-05 22:59:18 -03:00
  • 1498da09c8
    refactor(blossom): remove setCors function Anthony Accioly 2024-11-05 19:04:41 +00:00
  • 3d4dd71510
    refactor(blossom): undo enhanced routing Anthony Accioly 2024-11-05 18:55:47 +00:00
  • 582a74c000
    refactor: apply CORS rules on relay Anthony Accioly 2024-11-05 18:37:12 +00:00
  • bbcf948dd6
    fix(blossom): forward requests to base relay Anthony Accioly 2024-11-05 17:56:56 +00:00
  • 553d848362
    fix(policies): update check for ephemeral kinds Anthony Accioly 2024-11-05 17:32:56 +00:00
  • 2a80d4099d
    perf(blossom): set Access-Control-Max-Age to 24 h Anthony Accioly 2024-11-05 16:56:59 +00:00
  • ad6635d86c
    refactor(blossom): use Go 1.22 enhanced routing Anthony Accioly 2024-11-05 16:48:21 +00:00
  • c93441cd63
    feat(blossom): use rs/cors to handle BUD-01 CORS Anthony Accioly 2024-11-04 17:18:37 +00:00
  • dc34dd7e90
    build(deps): bump rs/cors version to v1.11.1 Anthony Accioly 2024-11-04 14:02:18 +00:00
  • a004f59187
    fix(blossom): Example returns io.Reader Anthony Accioly 2024-11-04 13:56:13 +00:00
  • a931a83370 fix negentropy by making special provisions for bypassing query limits. fiatjaf 2024-11-03 16:57:16 -03:00
  • 1c15db2ca1 fix(blossom): CORS headers required by noStrudel Anthony Accioly 2024-10-31 05:06:58 +00:00
  • b617fea679 blossom: again a bunch of fixes. require Authorization on /upload again always. v0.10.0 fiatjaf 2024-10-29 16:32:45 -03:00
  • 1d7bdccb3a blossom: fixes and updates from trying to use it. fiatjaf 2024-10-29 09:00:45 -03:00
  • 92d1a5b671 blossom: implement bud06 (upload requirements). fiatjaf 2024-10-28 17:30:25 -03:00
  • 7f878121fc blossom: return code from Reject* functions because HTTP is stupid. fiatjaf 2024-10-28 17:30:07 -03:00
  • a893dc2d2c blossom: store as a standalone interface (and an eventstore wrapper). fiatjaf 2024-10-27 23:00:51 -03:00
  • 91e7737ec1 basic modular blossom support. fiatjaf 2024-10-27 17:20:10 -03:00
  • 1dc12e5d2e support negentropy. v0.9.1 fiatjaf 2024-10-26 23:41:39 -03:00
  • f3b18619c7 update eventstore just so badger and ristretto are the same everywhere, who knows what the package manager will do. v0.9.0 fiatjaf 2024-10-23 23:17:50 -03:00
  • 902e882d97 policies: RestrictToSpecifiedKinds() to allow ephemeral. fiatjaf 2024-10-22 13:32:24 -03:00
  • 8f62b2fbbe policies.PreventLargeTags() example was too strict for "a" tags. fiatjaf 2024-10-21 08:53:35 -03:00
  • d4334ac2bb revert "a function to send an event directly to a specific connection." v0.8.4 fiatjaf 2024-10-16 15:07:44 -03:00
  • 9069341657 a context that is canceled whenever a websocket is dropped. fiatjaf 2024-10-16 15:06:47 -03:00
  • 9137eb02b0 cookbook: reacting to auth events. fiatjaf 2024-10-14 12:20:46 -03:00
  • e9c9d0c3a7 a function to send an event directly to a specific connection. fiatjaf 2024-10-13 12:42:36 -03:00
  • 39d882857c fix missing ! in CheckID() fiatjaf 2024-09-25 14:33:43 -03:00
  • 3ca3160202 fix missing ! in CheckID() v0.8.3 fiatjaf 2024-09-25 14:33:43 -03:00
  • 6e04cca511 Update use-cases.md ptrio42 aka pitiunited 2024-09-25 02:30:50 +02:00
  • cc891d06ed update go-nostr and make checkid faster. v0.8.2 fiatjaf 2024-09-24 19:04:18 -03:00
  • 08be77b914 empty filters are not insane. fiatjaf 2024-09-24 19:01:57 -03:00
  • e25400a61a actually we don't need all that fluff. fiatjaf 2024-09-16 17:39:54 -03:00
  • 635e91f360 policies: shoehorn an iterator in a xsync map Range(). fiatjaf 2024-09-16 15:59:08 -03:00
  • eb92c2aac5 make check id more simple. kehiy 2024-09-14 15:03:09 +03:30
  • 18fc0dc1dd ensure AddEvent contexts get cleaned so store queries aren't left half-read. fiatjaf 2024-09-12 22:33:53 -03:00
  • 6d827ac89a return blank IP and do not rate-limit when calling AddEvent(). fiatjaf 2024-09-11 23:02:01 -03:00
  • b8bb58f77c sane defaults: increase initial connections limit burst. v0.8.1 fiatjaf 2024-09-11 08:00:39 -03:00
  • 79eaedcffe remove useless boolean comparison. fiatjaf 2024-09-05 14:38:59 -03:00
  • aa2ac552ea support deleting "a" references. v0.8.0 fiatjaf 2024-08-28 08:43:56 -03:00
  • 4e2b921af9 fix typo in nip42 docs Barry Deen 2024-08-25 09:42:17 -04:00
  • cf98cfc6d8 update xsync. fiatjaf 2024-08-24 07:17:07 -03:00
  • 62a3b9b7d9 docs: remove mention to bolt. fiatjaf 2024-08-24 07:16:52 -03:00
  • e8637afa38 policies: timestamps policies take time.Duration v0.7.6 fiatjaf 2024-08-20 10:40:28 -03:00
  • e38036a5e6 add a sample to docs landing page. fiatjaf 2024-08-20 08:01:37 -03:00
  • 6a9dcdcbd4 add a fuzz test. v0.7.5 fiatjaf 2024-08-14 09:30:02 -03:00
  • 5ae4d1194a this fix was stupidly missing yesterday. fiatjaf 2024-08-14 08:29:28 -03:00
  • 753a1191b9 add test for that. v0.7.4 fiatjaf 2024-08-13 13:59:08 -03:00
  • 3e6d763a79 fix wrong matching on listener remove when router is used. fiatjaf 2024-08-13 13:21:39 -03:00
  • 3b03f6700c convert the random listener tests into fuzzy tests. fiatjaf 2024-08-13 11:38:59 -03:00
  • d7056f1515 tests that caught the previous two bugs. v0.7.3 fiatjaf 2024-08-04 17:44:12 -03:00
  • 4e0971bafe fix removeListenerId() -- do not replace twice with the same last item when a client has repeated ids. fiatjaf 2024-08-04 17:43:15 -03:00
  • 07ea3a35ec removeClientAndListeners() -- stop confusing listeners when removing from the same ws. fiatjaf 2024-08-04 17:25:19 -03:00
  • ef57f54a28 fix listeners convoluted magic and add tests for it. v0.7.2 fiatjaf 2024-08-01 15:36:14 -03:00