190 Commits

Author SHA1 Message Date
fiatjaf
86d2fec964
add author tag.
fixes https://github.com/fiatjaf/khatru/issues/2
2023-11-18 23:20:41 -03:00
fiatjaf
dcdf86c4e4
allow filtering by tag on PreventTooManyIndexableTags 2023-11-18 12:55:05 -03:00
fiatjaf
0a62169e14
update examples. v0.0.12 2023-11-18 10:37:07 -03:00
fiatjaf
8fd6436ac8
rework nip11 support to be more transparent. 2023-11-18 10:35:08 -03:00
fiatjaf
d2544d0f4d
stop uselessly returning NIPs that are obviously supported on NIP-11 response. 2023-11-18 08:03:32 -03:00
fiatjaf
7a3eb6fb08
plugins.PreventLargeTags() v0.0.11 2023-11-13 16:26:27 -03:00
fiatjaf
1abeab4851
filter.Limit is zero by default, so we will short-circuit on negative limits. 2023-11-13 10:55:17 -03:00
fiatjaf
ecb4fc66f8
shortcut querying when limit == 0 v0.0.10 2023-11-12 09:27:36 -03:00
fiatjaf
af24bd2132
fix eose waitgroup on early reject. 2023-11-11 21:15:10 -03:00
fiatjaf
4905a46ccd
make filter rejection actually work and move logic to a separate file. 2023-11-11 21:08:39 -03:00
fiatjaf
21e0c559f7
simplify event rejection code. 2023-11-11 18:00:04 -03:00
fiatjaf
78dd138ca8
fix content-type for nip-11. v0.0.9 2023-11-09 21:39:28 -03:00
fiatjaf
6c1a030ad2
get rid of useless error for closing connection on ping. 2023-11-07 22:55:24 -03:00
fiatjaf
270096debb
meta things and get rid of old relayer tests that don\'t work here. 2023-11-07 22:43:30 -03:00
fiatjaf
487b84cf2d
fix previous commit plugins. v0.0.8 2023-11-07 16:35:27 -03:00
fiatjaf
b277dae743
fix RejectFilters application, support overwriting filters and add some filter plugin helpers. 2023-11-07 16:08:56 -03:00
fiatjaf
1e51cdbc07
use ErrDupEvent from eventstore instead of our own. 2023-11-07 14:36:13 -03:00
fiatjaf
a15cd4e545
fix replaceable handlers to not delete things all the time. v0.0.7 2023-11-07 14:14:53 -03:00
fiatjaf
e6078b1a68
a readme with a sample. 2023-11-06 17:45:27 -03:00
fiatjaf
0ad33f78f1
PreventTimestampsInThePast() and PreventTimestampsInTheFuture() helpers. 2023-11-04 18:21:28 -03:00
fiatjaf
c0848182c4
OverwriteResponseEvent for optionally modifying events before sending them to client. v0.0.6 2023-11-04 17:39:28 -03:00
fiatjaf
80586c4573
update go-nostr to fix the OK envelope bug. 2023-11-04 17:31:39 -03:00
fiatjaf
d19b8f8895
support icon url. v0.0.4 2023-11-02 21:24:19 -03:00
fiatjaf
85ec58cf8e
RestrictToSpecifiedKinds() filter. 2023-11-02 20:31:32 -03:00
fiatjaf
6acf1b4366
update eventstore and badger/lmdb examples. 2023-11-02 20:16:17 -03:00
fiatjaf
bf2c9e4640
use eventstore release v0.0.1 2023-10-31 16:48:05 -03:00
fiatjaf
b6e7fabeb6
move storage plugins to eventstore module. 2023-10-31 16:38:32 -03:00
fiatjaf
bbe186494e
replace mutex-guarded maps with xsync/v2 maps. v0.0.3 2023-10-03 08:32:07 -03:00
fiatjaf
24d1e3aebd
lmdbn/badgern: fix for tag array crashes on query planner. 2023-09-16 15:51:41 -03:00
fiatjaf
8968982b9a
relayer, second attempt, now much better. 2023-08-10 14:32:11 -03:00
jiftechnify
e4fe82dd7f keep up with the latest specs for since/until filter 2023-07-15 16:08:54 -03:00
Yasuhiro Matsumoto
fb3626feb9 fix typo 2023-07-13 14:41:11 -03:00
fiatjaf
0d92cb63d1
be smarter about errors from SaveEvent() 2023-06-26 20:47:33 -03:00
fiatjaf
0a5624737d
pass AUTH information to functions via context. 2023-06-26 20:05:06 -03:00
fiatjaf
dc594ee32b
migrate to fasthttp/websocket. 2023-06-23 07:10:59 -03:00
fiatjaf
ebfff13b18 use envelopes everywhere. 2023-06-16 17:48:34 -03:00
Isaque Veras
ee84bf513f
feat(AddEvent): add pointer when adding event (#68) 2023-06-12 08:19:07 -03:00
fiatjaf_
0efec9b905
Merge pull request #67 from mattn/fix-elasticsearch-count 2023-06-05 11:50:16 -03:00
bndw
55f0f5a225 feat(postgres): configurable limits
Makes all hardcoded limits configurable for `type PostgresBackend` and retains the
current default values.

Related to #60
2023-06-05 11:49:23 -03:00
Yasuhiro Matsumoto
070bf34438
remove unused code 2023-06-05 23:46:25 +09:00
Yasuhiro Matsumoto
3176fbde62
implement CountEvents 2023-06-05 23:43:29 +09:00
Yasuhiro Matsumoto
7023220941
fix docker-compose.yml
expose 7447
fix command path
2023-06-05 23:42:53 +09:00
Isaque Veras
0b7a1669b8
chore(listener): removing redundancy (#64) 2023-06-03 16:28:02 -03:00
Isaque Veras
9617bd80ce fix: link to basic example 2023-05-30 18:10:48 -03:00
bndw
03ecbb9e6c feat(postgres): configurable query limit
Adds a QueryLimit to `type PostgresBackend` and retains the
current default value of 100.

Closes #60
2023-05-24 13:13:42 -03:00
fiatjaf
47b8ee106f
move example relay implementations to examples/ folder. 2023-05-23 10:43:20 -03:00
fiatjaf
b2bf358789
update to go-nostr 0.18.3 2023-05-18 09:47:04 -03:00
bndw
a7dbf7c491 refactor(postgres): Unit test SaveEvent
Refactors SaveEvent so it's unit testable and adds tests to
assert the current behavior.
2023-05-18 09:40:45 -03:00
Yasuhiro Matsumoto
f328910ab6 COUNT should not be subscribable 2023-05-18 09:37:14 -03:00
mattn
639c210661
support NIP-45 (#58) 2023-05-17 07:54:56 -03:00