This commit is contained in:
greeneclipse committed 2026-10-15 21:22:43 +02:00
1 parent 04794aea54
commit cfd31f398c
61 files changed
+2062 -254

No files matched your search

+12 -1
View File
@@ -61,7 +61,8 @@ func PresentFeed(feed map[string]any) map[string]any {
"last_synced_at": lastSynced,
"products_updated_at": productsUpdated,
"last_data_at": lastDataAt,
"options": opts,
"options": publicFeedOptions(opts),
"has_auth_headers": opts["request_headers_encrypted"] != nil && opts["request_headers_encrypted"] != "",
}
if deltas, ok := opts["last_sync_deltas"].(map[string]any); ok && deltas != nil {
out["last_sync_deltas"] = deltas
@@ -138,3 +139,13 @@ func formatAPITime(v any) any {
return v
}
}
func publicFeedOptions(opts map[string]any) map[string]any {
safe := make(map[string]any, len(opts))
for k, v := range opts {
if k != "request_headers_encrypted" && k != "request_headers" {
safe[k] = v
}
}
return safe
}