Compare commits

..

No commits in common. "b6a5d6332d6b745a0103cabe7b75b8dabb21771b" and "dfeba317849215ab7162a89e3dd0fa7fed94bb0c" have entirely different histories.

2 changed files with 2 additions and 1326 deletions

View file

@ -482,16 +482,15 @@ WHERE id = $1 AND user_id = $2
func (s *Server) ShowPost(w http.ResponseWriter, r *http.Request) {
ui, _ := upsertUserInfo(r.Context(), s.db, s.lc, r.RemoteAddr)
var up *tailcfg.UserProfile
origin := "public"
if ui != nil {
up = ui.UserProfile
origin = "tailnet"
}
origin := "tailnet"
if valAny := r.Context().Value(privacyKey); valAny != nil {
if val, ok := valAny.(mixedCriticalityHandlerCtxKey); ok {
if val == isFunnel {
up = nil
origin = "public"
}
}
}

File diff suppressed because it is too large Load diff