From cfd2a0cab673762982602fec79c12ce01b7bac57 Mon Sep 17 00:00:00 2001 From: "oppili.bsky.social" Date: Mon, 7 Apr 2025 15:02:33 +0000 Subject: [PATCH] appview: add nil-check before resubmit-check resubmit checks are valid only for users that are logged in --- appview/state/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appview/state/pull.go b/appview/state/pull.go index 3c7a0499..d43781bf 100644 --- a/appview/state/pull.go +++ b/appview/state/pull.go @@ -116,7 +116,7 @@ func (s *State) RepoSinglePull(w http.ResponseWriter, r *http.Request) { mergeCheckResponse := s.mergeCheck(f, pull) resubmitResult := pages.Unknown - if user.Did == pull.OwnerDid { + if user != nil && user.Did == pull.OwnerDid { resubmitResult = s.resubmitCheck(f, pull) } -- 2.51.2