Commit Graph

108 Commits

Author SHA1 Message Date
fiatjaf 4e490879b5 khatru/policies: accept deletions even when they're not protected. 2026-03-09 22:37:26 -03:00
fiatjaf 4719c0bc9f khatru/policies: PreventNormalDuplicates() to consider "a" reactions too. 2026-03-06 01:04:46 -03:00
fiatjaf 55cc52876a khatru/policies: support "a" in kind:1163 on PreventNormalDuplicates() 2026-02-18 15:26:10 -03:00
fiatjaf 137c09369a khatru/policies: fix tagName usage in PreventNormalDuplicates() 2026-02-18 10:43:33 -03:00
fiatjaf d30c1bff46 khatru/policies: PreventNormalDuplicates() 2026-02-17 18:33:59 -03:00
fiatjaf 65ef1c50a7 khatru: OnEventDeleted hook. 2026-02-17 18:33:59 -03:00
fiatjaf a98ac0d050 khatru: only kill connection once. 2026-02-08 10:59:51 -03:00
fiatjaf 28bef1c990 khatru: stop iterating through event results if ws fails. 2026-02-08 10:59:30 -03:00
fiatjaf 0cb0d1ccb0 unify usage and export nostr.IsOlder() helper. 2026-01-22 22:54:44 -03:00
fiatjaf bcf973f997 khatru: update search cookbook in docs. 2026-01-16 18:56:41 -03:00
fiatjaf bd55c22768 khatru/blossom: ensure we don't get tricked by Content-Length. 2026-01-16 08:13:14 -03:00
fiatjaf 8b9e2ea951 khatru/blossom: fix yield exiting on eventstorewrapper. 2026-01-16 07:20:57 -03:00
fiatjaf 449db37bb5 nip86: fix kind type. 2026-01-14 00:53:05 -03:00
fiatjaf 455d7fcefe khatru: maybe fix links on readme. 2026-01-13 07:49:45 -03:00
fiatjaf 348de7bb06 khatru/blossom: fix an error message. 2026-01-13 00:23:44 -03:00
fiatjaf b9f1f93561 khatru/blossom: get rid of custom BlobDescriptor with useless Owner field. 2026-01-13 00:03:53 -03:00
fiatjaf 14acd4b740 blossom: GetExtension() 2026-01-12 15:46:01 -03:00
fiatjaf 416e11b868 khatru: support path in getBaseURL(). 2026-01-02 07:25:46 -03:00
fiatjaf f47b77272b khatru: serve relay only from the path specified in ServiceURL. 2025-12-30 23:58:33 -03:00
fiatjaf 9f6143143b grasp: allowFilter. 2025-12-29 19:50:25 -03:00
fiatjaf c6bd1ee446 khatru: fix bbolt halting problem by deleting outside of the loop that fetches events to be deleted.
fixes nostr:nevent1qvzqqqqx25pzq2f38nys0gq4hs5k4l4s426689psdk7d52kzjk9s0ypne2nt7927qy88wumn8ghj7mn0wvhxcmmv9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcqyphrdv7jerr3f5mtlpcl7j7dg26ecxj9vrd5pyf0jknkqmp5qyyj28gxd3q
2025-12-19 00:23:21 -03:00
fiatjaf bdef5ac224 khatru: fix possible race condition with authed keys. 2025-12-16 13:21:53 -03:00
fiatjaf 658a40e16c grasp: remove superfluous status code. 2025-12-12 21:24:48 -03:00
fiatjaf 34a509c9d7 grasp: pass request context to repoExists(). 2025-12-08 12:29:32 -03:00
fiatjaf b323ca1b73 khatru: expose GetAllAuthed() safe helper. 2025-12-03 19:31:23 -03:00
fiatjaf 0e76c95cba khatru: increase max tokens on default strict policy. 2025-12-03 16:13:54 -03:00
fiatjaf 836a0f9842 grasp: remove apparently useless usage of syscall.SysProcAttr as it breaks windows builds. 2025-12-01 21:22:26 -03:00
fiatjaf 91548fa0a1 khatru: set max negentropy limit to 20x the default max limit. 2025-12-01 20:28:30 -03:00
fiatjaf b15ad71282 khatru: negentropy sessions take longer to close. 2025-12-01 18:28:02 -03:00
fiatjaf fb1603e062 grasp: repository path uses the pubkey now. 2025-12-01 10:03:01 -03:00
fiatjaf 020e4a8f56 grasp: spread stuff into multiple files. 2025-12-01 09:42:34 -03:00
fiatjaf 4b8fc31c23 grasp: return empty info-refs on both push and pull when repository wasn't created yet. 2025-11-30 22:41:31 -03:00
fiatjaf 6367bd71d4 nip11: add "supported_grasps" special field. 2025-11-25 14:50:14 -03:00
fiatjaf ff5655ac55 schema: tests passing. 2025-11-23 17:52:29 -03:00
fiatjaf 98959e73e7 eventstore: replace bluge with bleve.
bluge seems to be abandoned and bleve should work better, who knows.
2025-11-23 06:57:54 -03:00
fiatjaf 55a43e46b7 use xhex everywhere. 2025-11-23 06:57:54 -03:00
fiatjaf 4a5983a17c grasp: fix all the issues with info-refs, force-pushes, checked-out repos etc, and .Log() 2025-11-19 16:37:20 -03:00
fiatjaf 5efd8c6485 grasp: better git error messages and get rid of stdout printing. 2025-11-18 23:18:49 -03:00
fiatjaf 8ea2a00037 grasp: temporary OnRead and OnWrite hooks. 2025-11-18 16:28:05 -03:00
fiatjaf f5fb294efa blossom: add an alternative BlobIndex implementation in memory. 2025-11-18 16:04:37 -03:00
fiatjaf 078e9b4cc2 khatru: grasp server. 2025-11-17 08:10:08 -03:00
fiatjaf 98dbe7b9e9 improve and make nip77 api nicer so it could be better used in nak. 2025-11-12 20:21:02 -03:00
fiatjaf 43fabbeb2a eventstore: more consistent ErrDupEvent firing. 2025-11-12 16:10:50 -03:00
fiatjaf db835ef3c4 khatru: add policies to validate event tags by kind and replace reactions. 2025-11-11 16:34:17 -03:00
fiatjaf 637de481e5 khatru: fix bug that caused a query with limit zero to bypass request filtering.
spotted by hodlbod.
2025-11-04 21:19:56 -03:00
fiatjaf b87bc0ede4 khatru: store and broadcast kind:5 deletion events.
by insistence of @staab
2025-10-31 16:36:46 -03:00
fiatjaf 32bbff615a khatru: ForceBroadcastEvent() 2025-10-31 13:05:19 -03:00
fiatjaf 13c44a4644 khatru: PreventBroadcast() also gets passed the filter. 2025-10-30 16:30:34 -03:00
fiatjaf e34ce6aa94 khatru: fix an argument name. 2025-10-30 09:41:37 -03:00
fiatjaf 8ae530b163 nip42/khatru: clearer AUTH error messages. 2025-10-28 11:42:38 -03:00