修改默认配置

This commit is contained in:
anian
2026-07-02 19:18:24 +08:00
parent d94008f0fb
commit fc866e23f9
26 changed files with 54 additions and 48 deletions
+1 -1
View File
@@ -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: "",
}
+5 -5
View File
@@ -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
}