Skip to content

Commit

Permalink
Merge branch 'main' into fix-milestone-repo-list-highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
GiteaBot committed Aug 4, 2023
2 parents 68a5a80 + 6a7a5ea commit 30cc3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/shared/user/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func PrepareContextForProfileBigAvatar(ctx *context.Context) {

func FindUserProfileReadme(ctx *context.Context) (profileGitRepo *git.Repository, profileReadmeBlob *git.Blob, profileClose func()) {
profileDbRepo, err := repo_model.GetRepositoryByName(ctx.ContextUser.ID, ".profile")
if err == nil && !profileDbRepo.IsEmpty {
if err == nil && !profileDbRepo.IsEmpty && !profileDbRepo.IsPrivate {
if profileGitRepo, err = git.OpenRepository(ctx, profileDbRepo.RepoPath()); err != nil {
log.Error("FindUserProfileReadme failed to OpenRepository: %v", err)
} else {
Expand Down

0 comments on commit 30cc3ea

Please sign in to comment.