0.3.01
This commit is contained in:
@@ -130,6 +130,7 @@ func (s *Server) handleServiceStatus(w http.ResponseWriter, r *http.Request, ses
|
||||
}
|
||||
compatible, compatibilityMessage := compatibilityFor(r)
|
||||
featurePolicy := s.currentFeaturePolicy(r.Context())
|
||||
metadataHero := s.metadataHeroSettings.get()
|
||||
writeJSON(w, http.StatusOK, map[string]any{
|
||||
"maintenance": state.Enabled,
|
||||
"quietTime": quiet.Active,
|
||||
@@ -153,10 +154,11 @@ func (s *Server) handleServiceStatus(w http.ResponseWriter, r *http.Request, ses
|
||||
// fetches /v1/preferences when they differ. That is what turns this poll into the
|
||||
// delivery channel for an operator pushing someone's settings.
|
||||
"preferencesRevision": s.preferenceRevisionFor(r, sess),
|
||||
// Four small ids are the complete household-wide metadata hero composition. They
|
||||
// ride the existing poll so a saved layout reaches an open launcher immediately,
|
||||
// without manufacturing a per-user preference revision for a global change.
|
||||
"metadataHeroContentOrder": s.metadataHeroSettings.get().ContentOrder,
|
||||
// The small metadata hero presentation document rides the existing poll so a saved
|
||||
// layout or colour reaches an open launcher immediately, without manufacturing a
|
||||
// per-user preference revision for a global change.
|
||||
"metadataHeroContentOrder": metadataHero.ContentOrder,
|
||||
"metadataHeroTimeRemainingColour": metadataHero.TimeRemainingColour,
|
||||
// The theme, as an id and a revision rather than the palette itself — the
|
||||
// preferencesRevision precedent, for the same reason. The set refetches /v1/theme
|
||||
// only when one of these moves, which is what makes a season arriving at midnight
|
||||
|
||||
Reference in New Issue
Block a user