telegram: modularize, add to userpage

This commit is contained in:
Harvey Tindall
2023-06-19 22:11:35 +01:00
parent 68aedf07ae
commit fcedea110d
10 changed files with 179 additions and 98 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ func (app *appContext) MyUserPage(gc *gin.Context) {
"langName": lang,
}
if telegramEnabled {
data["telegramUser"] = app.telegram.username
data["telegramUsername"] = app.telegram.username
data["telegramURL"] = app.telegram.link
data["telegramRequired"] = app.config.Section("telegram").Key("required").MustBool(false)
}