patched up community display in find.jet

This commit is contained in:
2025-10-20 22:16:10 -06:00
parent 8b00cfce1f
commit e6f157c337
6 changed files with 139 additions and 13 deletions
+9
View File
@@ -239,6 +239,9 @@ func EditCommunityProfile(ctxt ui.AmContext) (string, any, error) {
flags.Set(database.CommunityFlagPicturesInPosts, dlg.Field("pic_in_post").IsChecked())
err = comm.SaveFlags(flags)
}
if err == nil {
err = comm.TouchUpdate()
}
if err != nil {
ctxt.ClearCommunityContext()
return dlg.RenderError(ctxt, err.Error())
@@ -321,6 +324,9 @@ func EditCommunityLogo(ctxt ui.AmContext) (string, any, error) {
photourl := fmt.Sprintf("/img/store/%d", img.ImgId)
ci.PhotoURL = &photourl
_, err = ci.Save()
if err == nil {
err = comm.TouchUpdate()
}
if err == nil {
return "redirect", "/comm/" + comm.Alias + "/admin/profile", nil
}
@@ -457,6 +463,9 @@ func CreateCommunity(ctxt ui.AmContext) (string, any, error) {
if err == nil {
err = comm.SetContactID(ci.ContactId)
}
if err == nil {
err = comm.TouchUpdate()
}
if err != nil {
return dlg.RenderError(ctxt, err.Error())
}