Compare commits
2 commits
dfeba31784
...
b6a5d6332d
Author | SHA1 | Date | |
---|---|---|---|
Gabriel Simmer | b6a5d6332d | ||
Gabriel Simmer | 66bfb09ab0 |
|
@ -482,15 +482,16 @@ WHERE id = $1 AND user_id = $2
|
||||||
func (s *Server) ShowPost(w http.ResponseWriter, r *http.Request) {
|
func (s *Server) ShowPost(w http.ResponseWriter, r *http.Request) {
|
||||||
ui, _ := upsertUserInfo(r.Context(), s.db, s.lc, r.RemoteAddr)
|
ui, _ := upsertUserInfo(r.Context(), s.db, s.lc, r.RemoteAddr)
|
||||||
var up *tailcfg.UserProfile
|
var up *tailcfg.UserProfile
|
||||||
|
origin := "public"
|
||||||
if ui != nil {
|
if ui != nil {
|
||||||
up = ui.UserProfile
|
up = ui.UserProfile
|
||||||
|
origin = "tailnet"
|
||||||
}
|
}
|
||||||
origin := "tailnet"
|
|
||||||
if valAny := r.Context().Value(privacyKey); valAny != nil {
|
if valAny := r.Context().Value(privacyKey); valAny != nil {
|
||||||
if val, ok := valAny.(mixedCriticalityHandlerCtxKey); ok {
|
if val, ok := valAny.(mixedCriticalityHandlerCtxKey); ok {
|
||||||
if val == isFunnel {
|
if val == isFunnel {
|
||||||
up = nil
|
up = nil
|
||||||
origin = "public"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1323
contrib/grafana.json
Normal file
1323
contrib/grafana.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue