fixed bugs in community profile

This commit is contained in:
2025-10-18 16:45:43 -06:00
parent 83bd817630
commit 94c3877819
8 changed files with 80 additions and 25 deletions
+3 -1
View File
@@ -115,7 +115,9 @@ func ShowCommunity(ctxt ui.AmContext) (string, any, error) {
}
tag, err := comm.LanguageTag()
if err == nil && tag != nil {
ctxt.VarMap().Set("language", display.Languages(*prefs.LanguageTag()).Name(tag))
my_lang := prefs.LanguageTag()
disp := display.Languages(*my_lang)
ctxt.VarMap().Set("language", disp.Name(tag))
}
if comm.Rules != nil && *comm.Rules != "" {
ctxt.VarMap().Set("rules", *comm.Rules)