0.2.58 - Requests module
This commit is contained in:
@@ -142,5 +142,12 @@ func (s *Server) handleServiceStatus(w http.ResponseWriter, r *http.Request, ses
|
||||
// season has to reach a set that is already switched on, without anybody doing
|
||||
// anything.
|
||||
"theme": themeStatus(s.themeFor(r.Context(), sess)),
|
||||
// Whether this viewer may ask the household for titles. Per person rather than per
|
||||
// household, so it cannot ride the feature map beside it: the allowlist is the
|
||||
// operator's decision about one account, and every television is polling this
|
||||
// anyway. It is what keeps the Requests entry out of the switcher for everybody
|
||||
// else — the handlers refuse regardless, but a menu item that only ever produces a
|
||||
// refusal is worse than no menu item.
|
||||
"requests": map[string]any{"allowed": s.requestAllowed(r, sess)},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user