From a6a92bd7e1b2e758b9345cbe7ebb24d819607898 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Tue, 15 Aug 2023 02:44:41 +0000 Subject: [PATCH] add --- routers/web/user/notification.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go index 579287ffac65..77bc5f555329 100644 --- a/routers/web/user/notification.go +++ b/routers/web/user/notification.go @@ -374,6 +374,9 @@ func NotificationWatching(ctx *context.Context) { orderBy = db.SearchOrderByRecentUpdated } + language := ctx.FormTrim("language") + ctx.Data["Language"] = language + repos, count, err := repo_model.SearchRepository(ctx, &repo_model.SearchRepoOptions{ ListOptions: db.ListOptions{ PageSize: setting.UI.User.RepoPagingNum, @@ -386,6 +389,7 @@ func NotificationWatching(ctx *context.Context) { WatchedByID: ctx.Doer.ID, Collaborate: util.OptionalBoolFalse, TopicOnly: ctx.FormBool("topic"), + Language: language, IncludeDescription: setting.UI.SearchRepoDescription, }) if err != nil {