From 288dda282c813d1264aa0db0c0b82b3d71bed15c Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 22 Mar 2024 17:41:36 +0100 Subject: [PATCH] Add more ToDos --- routers/web/repo/setting/setting.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routers/web/repo/setting/setting.go b/routers/web/repo/setting/setting.go index 524eebb64d..ee76dc6213 100644 --- a/routers/web/repo/setting/setting.go +++ b/routers/web/repo/setting/setting.go @@ -192,13 +192,15 @@ func SettingsPost(ctx *context.Context) { return } + // Create Federated Repo Structs & commit to DB + // ToDo: Implement in federation_service.go + // ToDo: Use Federated Repo Struct & Update Federated Repo Table // TODO: move as much functions to some kind of service in order to keep controller clean an simple switch { // Allow clearing the field case form.FederationRepos == "": repo.FederationRepos = "" - // Validate case !validation.IsOfValidLength(form.FederationRepos): // ToDo: Use for public testing only. In production we might need longer strings. ctx.Data["ERR_FederationRepos"] = true