修改默认配置
This commit is contained in:
@@ -431,7 +431,7 @@ func getDeleteUserAttachmentStorageSetting(ctx context.Context, stores *store.St
|
||||
|
||||
func getDefaultUserGeneralSetting() *v1pb.UserSetting_GeneralSetting {
|
||||
return &v1pb.UserSetting_GeneralSetting{
|
||||
Locale: "en",
|
||||
Locale: "zh-Hans",
|
||||
MemoVisibility: "PRIVATE",
|
||||
Theme: "",
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ func (*RSSService) generateItemTitle(content string) string {
|
||||
|
||||
// If title is empty, use a default
|
||||
if title == "" {
|
||||
title = "Memo"
|
||||
title = "阿年的备忘录"
|
||||
}
|
||||
|
||||
return title
|
||||
@@ -416,9 +416,9 @@ func getRSSHeading(ctx context.Context, stores *store.Store) (RSSHeading, error)
|
||||
}
|
||||
if settings == nil || settings.CustomProfile == nil {
|
||||
return RSSHeading{
|
||||
Title: "Memos",
|
||||
Description: "An open source, lightweight note-taking service. Easily capture and share your great thoughts.",
|
||||
Language: "en-us",
|
||||
Title: "阿年的备忘录",
|
||||
Description: "一日不见 如隔三秋",
|
||||
Language: "zh-Hans",
|
||||
}, nil
|
||||
}
|
||||
customProfile := settings.CustomProfile
|
||||
@@ -426,6 +426,6 @@ func getRSSHeading(ctx context.Context, stores *store.Store) (RSSHeading, error)
|
||||
return RSSHeading{
|
||||
Title: customProfile.Title,
|
||||
Description: customProfile.Description,
|
||||
Language: "en-us",
|
||||
Language: "zh-Hans",
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user