got Find Communities to work

This commit is contained in:
2025-10-21 21:43:00 -06:00
parent 7e3b1d535f
commit fe6d53a965
6 changed files with 254 additions and 21 deletions
+7 -1
View File
@@ -131,7 +131,13 @@ func CommunityProfileForm(ctxt ui.AmContext) (string, any, error) {
dlg.Field("joinkey").SetVal(comm.JoinKey)
}
dlg.Field("membersonly").SetChecked(comm.MembersOnly)
dlg.Field("hidemode").Value = comm.HideMode()
if comm.HideFromSearch {
dlg.Field("hidemode").Value = "BOTH"
} else if comm.HideFromDirectory {
dlg.Field("hidemode").Value = "DIRECTORY"
} else {
dlg.Field("hidemode").Value = "NONE"
}
dlg.Field("read_lvl").Value = fmt.Sprintf("%d", comm.ReadLevel)
dlg.Field("write_lvl").Value = fmt.Sprintf("%d", comm.WriteLevel)
dlg.Field("create_lvl").Value = fmt.Sprintf("%d", comm.CreateLevel)