diff options
| author | Ilya Afanasov <iafanasov@icloud.com> | 2025-03-15 10:16:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 10:16:59 +0300 |
| commit | d30cdbf49a7443a62f599d4f91a4f1ebceb1c666 (patch) | |
| tree | 78b9ca342a43b8d62dbe33b683719b9e7bcddc62 /sub/sub.go | |
| parent | cac00224db7b229efac3ee242a5d5790ee0d98cf (diff) | |
feat: custom subscription title in panel (#2773)
* feat: custom subscription title in panel
* feat: added translations
Diffstat (limited to 'sub/sub.go')
| -rw-r--r-- | sub/sub.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -107,11 +107,16 @@ func (s *Server) initRouter() (*gin.Engine, error) { SubJsonRules = "" } + SubTitle, err := s.settingService.GetSubTitle() + if err != nil { + SubTitle = "" + } + g := engine.Group("/") s.sub = NewSUBController( g, LinksPath, JsonPath, Encrypt, ShowInfo, RemarkModel, SubUpdates, - SubJsonFragment, SubJsonNoises, SubJsonMux, SubJsonRules) + SubJsonFragment, SubJsonNoises, SubJsonMux, SubJsonRules, SubTitle) return engine, nil } |
