Anthony Accioly
5705647c6b
fix(blossom): remove extra . when serving files without extension
...
Ensure the correct filename is constructed when serving content without
an extension
2025-06-03 18:31:53 -03:00
Anthony Accioly
b2607e787f
feat(docs): add redirection support details in Blossom usage guide
2025-06-03 18:31:53 -03:00
Anthony Accioly
011efe0dd2
feat(server): add functional options for BlossomServer configuration
...
Introduce `ServerOption` to configure `BlossomServer` with functional
options. Add `WithRedirectURL` to enable flexible redirect URL handling
with placeholders. Update `New` constructor to accept optional
configurations.
2025-06-03 18:31:53 -03:00
Anthony Accioly
16eee5cffb
feat(blossom): add redirect support for GET requests
2025-06-03 18:31:53 -03:00
fiatjaf
c5076b297d
handle files declared as .apk as .apk.
...
fixes https://github.com/fiatjaf/khatru/issues/50
2025-06-03 18:29:39 -03:00
Bitkarrot
1a5b498fb8
Update blossom.md ( #42 )
...
fix type 'Jut' to 'Just'
2025-05-09 15:15:59 -03:00
sudocarlos
b6da555807
blossom: return content-type in handleUpload() ( #46 )
2025-05-09 08:41:46 -03:00
sudocarlos
1ab44ab897
blossom: implement BUD-05 without optimizations ( #45 )
...
* blossom: implement BUD-05 without optimizations
* blossom: add redirect function, handle /media with 307 redirect to /upload
* blossome: remove duplicate /upload handle
* blossom: add content-length header to handleHasBlob()
* blossom: add content-type header to handleHasBlob()
* blossom: remove blossomRedirect() and use http.Redirect() for handleMedia() instead
2025-05-08 10:29:26 -03:00
fiatjaf
3da898cec7
blossom: implement BUD-04
...
closes https://github.com/fiatjaf/khatru/issues/43
2025-05-06 00:44:45 -03:00
fiatjaf
cfbe484784
docs: show fox.
2025-04-28 15:45:07 -03:00
fiatjaf
583f712fe4
admin: normalize urls for nip86 checking.
2025-04-17 08:02:25 -03:00
Jon Staab
28b1061166
Reject deleted events
2025-04-16 18:55:36 -03:00
Jon Staab
25f19ce46e
Store and serve delete events
2025-04-16 18:55:28 -03:00
fiatjaf
33545587b6
make it so ephemeral events respond with ok:false if no one is listening.
2025-04-14 09:24:34 -03:00
Kay
214371f8bd
refactor(adding): check kind range with proper function.
2025-04-13 09:05:23 -03:00
fiatjaf
fbb40f3b74
use .Find() instead of .GetFirst() everywhere.
2025-04-04 23:07:18 -03:00
fiatjaf
d97a2f1cf2
initialScan()
2025-04-04 17:55:16 -03:00
fiatjaf
c9a7d60543
remove event from expiration manager if it is deleted.
2025-04-03 23:11:47 -03:00
fiatjaf
2bb6d4d29a
simplify WriteMessage, remove the defer since it's not needed.
2025-04-03 23:10:39 -03:00
fiatjaf
2292ce4a30
add missing return in repost protected clause.
2025-04-03 23:10:11 -03:00
fiatjaf
2ae219a34c
add khatru.IsInternal() for dealing with internal calls specifically in QueryEvents()
2025-04-03 23:06:57 -03:00
fiatjaf
8c9394993b
reject reposts that embed nip70 protected events.
...
in accordance with new stuff added to nip70 that makes some sense.
2025-03-28 18:08:49 -03:00
fiatjaf
850497956c
include checkid length check from @pippellia-btc
2025-03-24 15:57:20 -03:00
andrewheadricke
28ce6cfb7a
ensure suspected blossom request hash does not have slashes in it
2025-03-24 15:23:00 -03:00
fiatjaf
f47282c745
get rid of base64x temporarily since it doesn't work on arm64.
2025-03-19 15:02:56 -03:00
fiatjaf
f72dea346f
rename menu item on docs to say "blossom".
2025-03-17 13:38:35 -03:00
fiatjaf
51632dcc9f
update blossom example to use a different database.
...
closes https://github.com/fiatjaf/khatru/issues/36
2025-03-17 13:36:41 -03:00
andrewheadricke
6cc2477e89
fix blossom upload < 50bytes
2025-03-15 01:58:07 -03:00
fiatjaf
581c4ece28
updating go-nostr to fix sonic parser bug.
2025-03-14 20:10:52 -03:00
fiatjaf
596bca93c3
go-nostr MessageParser string transition.
2025-03-12 00:53:19 -03:00
fiatjaf
650d9209c3
policies: nip70 enforcer.
2025-03-11 17:42:27 -03:00
fiatjaf
0d736cff82
fix blossom authorization decoder.
2025-03-11 17:32:12 -03:00
fiatjaf
44ed6f519d
use NewMessageParser() that allows sonic to be opted in with tags.
2025-03-11 17:32:04 -03:00
fiatjaf
db832d4255
use sonic json parser and other minor performance improvements.
2025-03-07 21:47:34 -03:00
fiatjaf
625bde38c5
update go-nostr so CountEnvelope only has one filter, which simplies COUNT handling a lot, specially with HLL.
2025-03-07 10:11:58 -03:00
fiatjaf
7c6031f4e5
resolve relative icon and banner urls in nip11 handler.
2025-02-23 18:21:23 -03:00
ZigBalthazar
6e224b9437
nip-86: stats, grant/revoke admin, listallowedevents and listdisallowedkinds
2025-02-19 12:50:21 -03:00
Kay
e9030a355c
nip-86: add generic handler.
2025-02-10 09:27:52 -03:00
fiatjaf
a6ed7bced0
do not cancel subscription context on eose, only on subscription close.
2025-02-09 20:46:53 -03:00
fiatjaf
31128ebd18
filter policy: MustAuth()
2025-02-02 14:30:28 -03:00
k.
414867e62c
feat(blossom): add bud-09 reporting handler. ( #29 )
2025-02-01 18:03:17 -03:00
Kay
65383d6d65
making it a little better, so compiler wont complain.
2025-01-28 15:26:38 -03:00
Anthony Accioly
c4d9ef1025
fix(blossom): respond with 401 on missing Auth
2025-01-26 17:23:29 -03:00
fiatjaf
5e5a53240a
docs: fix broken links.
2025-01-13 17:40:51 -03:00
fiatjaf
3a9c88603b
add blossom page.
2025-01-13 17:38:10 -03:00
fiatjaf
2403f82dac
improve eventstore page.
2025-01-13 17:37:57 -03:00
fiatjaf
a289a77b6e
restructure docs to have a more useful sidebar.
2025-01-13 17:33:58 -03:00
fiatjaf
1a03178d83
test expiration.
2025-01-13 17:02:15 -03:00
fiatjaf
c73037ac82
test replaceable events.
2025-01-13 16:52:17 -03:00
fiatjaf
433cceea86
include the ReplaceEvent setup on all examples.
2025-01-13 16:47:21 -03:00