diff --git a/models/user/setting_keys.go b/models/user/setting_keys.go index 10255735b3177..e698a54332e2e 100644 --- a/models/user/setting_keys.go +++ b/models/user/setting_keys.go @@ -12,4 +12,6 @@ const ( UserActivityPubPrivPem = "activitypub.priv_pem" // UserActivityPubPubPem is user's public key UserActivityPubPubPem = "activitypub.pub_pem" + // SettingsKeyProfileRepoName is user's profile repo name + SettingsKeyProfileRepoName = "profile.repo_name" ) diff --git a/modules/structs/user.go b/modules/structs/user.go index f68b92ac069e2..cf832901a7aa2 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -75,8 +75,9 @@ type UserSettings struct { Theme string `json:"theme"` DiffViewStyle string `json:"diff_view_style"` // Privacy - HideEmail bool `json:"hide_email"` - HideActivity bool `json:"hide_activity"` + HideEmail bool `json:"hide_email"` + HideActivity bool `json:"hide_activity"` + ProfileRepoName string `json:"profile_repo_name"` } // UserSettingsOptions represents options to change user settings @@ -90,8 +91,9 @@ type UserSettingsOptions struct { Theme *string `json:"theme"` DiffViewStyle *string `json:"diff_view_style"` // Privacy - HideEmail *bool `json:"hide_email"` - HideActivity *bool `json:"hide_activity"` + HideEmail *bool `json:"hide_email"` + HideActivity *bool `json:"hide_activity"` + ProfileRepoName *string `json:"profile_repo_name"` } // RenameUserOption options when renaming a user diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index a7dd59ec3f91f..10bcbb5b38381 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -639,6 +639,7 @@ continue = Continue cancel = Cancel language = Language ui = Theme +profile_repo_name = Profile repo name hidden_comment_types = Hidden comment types hidden_comment_types_description = Comment types checked here will not be shown inside issue pages. Checking "Label" for example removes all " added/removed