feat(15-03): add journal media upload, RSS, and off-by-default Typesense gate

- POST /_journal/api/v1/media/upload requires access_posts and stays under journal/
- Anonymous GET rss is RSS 2.0 honoring rss_* settings; unpublished posts are omitted
- beachcomber Gate reads search_use_typesense (default false) so a fresh save makes no Typesense HTTP

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-06 19:03:35 +02:00
parent 3a1dda45ec
commit bdd1c1be61
12 changed files with 748 additions and 21 deletions

12
models/search_gate.go Normal file
View File

@@ -0,0 +1,12 @@
package models
import "sync/atomic"
var searchGate atomic.Bool
// SetSearchGate records whether beachcomber.Gate last read search_use_typesense
// as on. Read errors and a missing row count as off.
func SetSearchGate(on bool) { searchGate.Store(on) }
// SearchGateEnabled reports the last installed search gate value.
func SearchGateEnabled() bool { return searchGate.Load() }