Commit Graph

  • cab0654516 small fixes to NIP-42 parts of handlers.go Dylan Cant 2023-01-16 21:29:35 -05:00
  • 38d0f481c1 Added an "OK" signal when authenticated (or not) Dylan Cant 2023-01-16 01:24:35 -05:00
  • c05896a2e3 fixed typos added docstring Dylan Cant 2023-01-15 23:33:53 -05:00
  • cf3f94f4de Added an "OK" signal when authenticated (or not) Dylan Cant 2023-01-16 01:24:35 -05:00
  • c573c465f0 fixed typos added docstring Dylan Cant 2023-01-15 23:33:53 -05:00
  • fe91197d45 implement nip-42 AUTH and restrict DMs to authed users. fiatjaf 2023-01-15 22:38:24 -03:00
  • e70a5601c7 update go-nostr and fix rss-bridge. fiatjaf 2023-01-02 14:31:28 -03:00
  • 9ba958e9a0 set SetMaxOpenConns, close rows when QueryEvents finishes 0x0ff 2022-12-30 17:18:23 +01:00
  • 8b3ff7ac26 fix: remove listeners when client disconnects 0x0ff 2022-12-29 15:02:59 +01:00
  • 9ba4326085 fix: pass unix timestamp to DB.Exec instead of Time 0x0ff 2022-12-29 15:10:14 +01:00
  • af890590f3 fix: QueryEvents should skip ids that are not a valid 32 byte hex 0x0ff 2022-12-28 11:42:16 +01:00
  • f2ab8020a8 handle event responses as per NIP-20 0x0ff 2022-12-23 15:55:52 +01:00
  • 05e8f03d43 move timestamp variable under condition Saul Freeberty 2022-12-26 20:51:31 +00:00
  • 8fd148bbb5 remove expired invoice, and fix display unexpired invoice Saul Freeberty 2022-12-26 20:41:43 +00:00
  • bacf19b88d remove empty space Saul Freeberty 2022-12-25 23:14:34 +00:00
  • 3c953e4ae8 fix expensive relay invoice handler Saul Freeberty 2022-12-25 23:09:48 +00:00
  • 627724f702 start: introduce Server type and Shutdown (breaking change) alex 2022-12-24 22:21:26 +01:00
  • 932a9b62a7 start: make http server's listening host/port compatible with IPv6 (#14) alex 2022-12-24 22:53:05 +01:00
  • 642710fda8 start: propagate init errors alex 2022-12-22 23:40:20 +01:00
  • 570912e752 start: introduce function-args as alternative to env variable params alex 2022-12-22 08:16:37 +01:00
  • e03d2a56f5 Fixed whitelisted example Wes van der Vleuten 2022-12-21 22:49:51 +01:00
  • 3b7800692f better and less logs for websocket abnormal closures. fiatjaf 2022-12-19 14:47:57 -03:00
  • 9684033223 update go-nostr dependency and tag release. fiatjaf 2022-12-19 09:31:49 -03:00
  • 4b2fc819a1 fix expensive html bolt11 printing. fiatjaf 2022-12-15 21:35:40 -03:00
  • 5f8908e028 update go-nostr dependency. fiatjaf 2022-11-26 09:27:08 -03:00
  • d69479974c expose AddEvent() method, allow implementations to deal with unknown websocket messages, remove opinionated validations from core lib, implement NIP-20 ("OK" message). fiatjaf 2022-11-11 09:48:04 -03:00
  • d7aba0b21f fix some dependencies and storage instantiation on example relays. fiatjaf 2022-11-11 09:46:18 -03:00
  • b903f72945 never store ephemeral events. fiatjaf 2022-11-03 14:30:53 -03:00
  • 13a0c45fff fix: postgresql tags_to_tagvalues func definition 0x0ff 2022-10-15 22:31:06 +02:00
  • ec4cd51ebd fix: build failing 0x0ff 2022-10-09 15:35:34 +02:00
  • eee9952fac base58 bad-coding session. fiatjaf 2022-08-12 17:02:40 -03:00
  • 396ca4d3a0 use updated lnsocket library. fiatjaf 2022-07-25 15:03:37 -03:00
  • dd1093676f github action to build all the things. fiatjaf 2022-07-24 20:09:57 -03:00
  • 13d57303b5 support "limit" field on filters. fiatjaf 2022-07-24 19:58:34 -03:00
  • fbb81c868c bring in and refactor rss bridge. fiatjaf 2022-07-24 19:52:25 -03:00
  • aa96fa0a21 refactor framework interface, simplify basic and whitelisted, bring expensive on and rewrite it. fiatjaf 2022-07-24 16:55:59 -03:00
  • 84f7d34840 rename closed to whitelisted and build it and basic with musl. fiatjaf 2022-07-24 11:52:11 -03:00
  • d2ce4dbf54 implement nip-16 on closed and basic relays. fiatjaf 2022-07-24 11:48:34 -03:00
  • ca1d1ce58f update basic and closed. fiatjaf 2022-07-24 11:35:12 -03:00
  • 440a64ef28 update go-nostr. fiatjaf 2022-07-15 17:32:53 -03:00
  • 4daac2fc28 implement nip-09, event deletion. fiatjaf 2022-07-11 16:21:47 -03:00
  • 8cc12a6bd9 implement nip-11, relay information document. fiatjaf 2022-07-11 16:00:21 -03:00
  • 809f8030db implement nip-15, EOSE. fiatjaf 2022-07-11 15:44:06 -03:00
  • f383a0c71f remove deploy script. fiatjaf 2022-07-11 15:37:39 -03:00
  • c075684e65 add closedrelay: like basic, but only allows authorized pubkeys to post. fiatjaf 2022-05-02 16:55:39 -03:00
  • 42fee9cb1d update go-nostr. fiatjaf 2022-05-02 16:55:23 -03:00
  • d25ace94ac support prefix search and change indexes. fiatjaf 2022-02-14 14:04:25 -03:00
  • e50a298496 update go-nostr for a fix. fiatjaf 2022-02-13 20:37:51 -03:00
  • fa0079c020 fix sql scanning without sqlx magic. fiatjaf 2022-02-13 10:15:39 -03:00
  • 638b9262ec wait, we don't need to check if date is recent or anything, just if it is not nil. fiatjaf 2022-02-13 08:42:09 -03:00
  • f9d058a95a adapt to updated go-nostr. fiatjaf 2022-02-13 08:37:38 -03:00
  • a7710ef4f3 fix basic logs. fiatjaf 2022-02-11 20:10:25 -03:00
  • ea7d2eeb3e guard all websocket writes with mutexes. fiatjaf 2022-01-11 16:00:19 -03:00
  • ed829ac5f8 fix query fields returned. fiatjaf 2022-01-02 18:32:55 -03:00
  • b0467795cd Add Docker instructions Saul 2022-01-02 16:47:45 +02:00
  • 85e5644e2f add some readmes. fiatjaf 2022-01-02 17:30:35 -03:00
  • 8091dfedbe use generated columns and gin array indexes to query tags better. fiatjaf 2022-01-02 17:19:24 -03:00
  • ae3f5df0b9 log query on sql error. fiatjaf 2022-01-02 11:01:05 -03:00
  • 3e20e6c7cc renaming Equal -> FilterEqual fiatjaf 2022-01-02 09:08:05 -03:00
  • 629c9174eb update go-nostr. fiatjaf 2022-01-02 09:00:14 -03:00
  • f86eb9246b limit against abusive queries. fiatjaf 2022-01-01 21:38:54 -03:00
  • 9a455b8db6 update go-nostr with new nip-01 slices of everything. fiatjaf 2022-01-01 21:05:23 -03:00
  • 61f21dd3a6 basic: fix kind filtering (0 != nil). fiatjaf 2022-01-01 10:24:34 -03:00
  • e7286f0658 fix "error writing ping" warnings. fiatjaf 2021-12-27 11:17:15 -03:00
  • a63b805898 fix and improve error handling and notice sending flow. fiatjaf 2021-12-27 11:14:29 -03:00
  • 668b625651 match the websocket route before implementations. fiatjaf 2021-12-27 11:05:20 -03:00
  • 96fb775061 basic Makefile dependency fix. fiatjaf 2021-12-26 21:00:19 -03:00
  • 80e643c492 expose Router so servers can inject their own routes. fiatjaf 2021-12-26 20:56:42 -03:00
  • d9a6c6a1ad fix forgotten envconfig read. fiatjaf 2021-12-26 20:56:22 -03:00
  • ba0d99c131 GetListenerFilters() helper and Injector interface for implementations. fiatjaf 2021-12-26 07:11:54 -03:00
  • b4f94b8fdd add .Until filtering to event query. fiatjaf 2021-12-26 07:10:59 -03:00
  • 30eae726c1 turn relayer into a server framework and put actual relay code into ./basic fiatjaf 2021-12-25 21:22:40 -03:00
  • ac93e5c028 make subscription ids unique per each websocket connection. fiatjaf 2021-12-16 21:00:56 -03:00
  • 0265be6d31 upgrade to go-nostr v0.2.0. fiatjaf 2021-12-16 20:54:57 -03:00
  • c64d3e44dc my personal deployment script. fiatjaf 2021-11-28 17:01:29 -03:00
  • 333d530901 don't send NOTICE on json parsing errors. fiatjaf 2021-11-28 17:01:17 -03:00
  • 5a797d2c65 fix jsonpath-based taq query. fiatjaf 2021-11-28 16:55:39 -03:00
  • 7a3e07c5b2 change binary name. fiatjaf 2021-11-08 18:23:26 -03:00
  • a3f2645881 delete this sqlite thing. fiatjaf 2021-11-08 18:18:28 -03:00
  • 6359ad8776 ensure deletion of old stuff such that we don't have a huge database. fiatjaf 2021-11-08 18:15:27 -03:00
  • c1c3d29723 remove sqlite support. fiatjaf 2021-11-08 14:52:12 -03:00
  • 405dfd3425 create if not exist Saul 2021-10-23 23:21:10 +03:00
  • e1b384093b string name update Saul 2021-10-23 23:18:11 +03:00
  • 7370c1bbef authors: [] means you won't get anything. fiatjaf 2021-02-23 09:25:24 -03:00
  • 694eccd0c8 small fixes and guards. fiatjaf 2021-02-23 00:27:16 -03:00
  • decd60efbd update go-nostr to v0.1.1 fiatjaf 2021-02-22 01:18:57 -03:00
  • 1ff313e1a4 fix filter.Kind pointer type mismatch. fiatjaf 2021-02-21 23:46:46 -03:00
  • d4aa16f38a update go-nostr dependency. fiatjaf 2021-02-21 23:43:24 -03:00
  • 36cd95a58e wrong index Richard Bondi 2021-02-19 09:20:04 -06:00
  • bc860ff28b one extra bit of logging. fiatjaf 2021-02-20 19:03:22 -03:00
  • 08da692de6 change path from /ws to /. fiatjaf 2021-02-20 19:02:34 -03:00
  • db384be3f9 fix some query bugs. fiatjaf 2021-02-17 16:59:56 -03:00
  • d0c627968b update go-nostr dependency to reflect an actually published version. fiatjaf 2021-02-15 11:46:08 -03:00
  • e2adc6bc85 add kind to filter and rebind query. fiatjaf 2021-02-14 22:39:41 -03:00
  • 9c992c90dc adapt to new nip-01. fiatjaf 2021-02-14 21:08:02 -03:00
  • 80d244b2c3 remove rate limiter, this is just a proof-of-concept anyway. fiatjaf 2021-02-07 14:28:06 -03:00
  • a1aaed41c6 fix html escaping Richard Bondi 2021-02-07 09:02:02 -06:00
  • 6c6bf45c72 properly scan tags from database Richard Bondi 2021-01-31 21:48:30 -06:00
  • 3dacb07b62 delete metadata, not notes Richard Bondi 2021-01-21 21:28:14 -06:00
  • 029049e587 remove writedeadline for writing ping. fiatjaf 2021-01-19 17:37:29 -03:00