From 5b266229c30c5dc13f72fdb76042f964b479bd9a Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Fri, 11 Aug 2023 03:27:44 +0900 Subject: [PATCH] Fix AccountController (#3337) --- .../gitbucket/core/controller/AccountController.scala | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/scala/gitbucket/core/controller/AccountController.scala b/src/main/scala/gitbucket/core/controller/AccountController.scala index a4c9d8c52..3f870da76 100644 --- a/src/main/scala/gitbucket/core/controller/AccountController.scala +++ b/src/main/scala/gitbucket/core/controller/AccountController.scala @@ -185,7 +185,6 @@ trait AccountControllerBase extends AccountManagementControllerBase { initOption: String, sourceUrl: Option[String] ) - case class ForkRepositoryForm(owner: String, name: String) val newRepositoryForm = mapping( "owner" -> trim(label("Owner", text(required, maxlength(100), identifier, existsAccount))), @@ -196,11 +195,6 @@ trait AccountControllerBase extends AccountManagementControllerBase { "sourceUrl" -> trim(label("Source URL", optionalRequired(_.value("initOption") == "COPY", text()))) )(RepositoryCreationForm.apply) - val forkRepositoryForm = mapping( - "owner" -> trim(label("Repository owner", text(required))), - "name" -> trim(label("Repository name", text(required))) - )(ForkRepositoryForm.apply) - case class AccountForm(accountName: String) val accountForm = mapping( @@ -268,7 +262,7 @@ trait AccountControllerBase extends AccountManagementControllerBase { gitbucket.core.account.html.activity( account, if (account.isGroupAccount) Nil else getGroupsByUserName(userName), - getActivitiesByUser(userName, true), + getActivitiesByUser(userName, publicOnly = true), extraMailAddresses )