- 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>
13 lines
381 B
Go
13 lines
381 B
Go
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() }
|