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:
12
models/search_gate.go
Normal file
12
models/search_gate.go
Normal 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() }
|
||||
Reference in New Issue
Block a user