additional work on reading posts - still not quite there yet but getting closer

This commit is contained in:
2025-12-19 23:23:58 -07:00
parent 57d664dcb1
commit 80bd0e03fd
11 changed files with 325 additions and 151 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
package main
import (
"context"
"errors"
"fmt"
"net/http"
@@ -334,12 +335,12 @@ func EditCommunityLogo(ctxt ui.AmContext) (string, any, error) {
}
defer func() {
if happy {
go func() {
ampool.Submit(func(context.Context) {
err := database.AmDeleteImage(int32(id))
if err != nil {
log.Errorf("unable to delete image ID %d: %v", id, err)
}
}()
})
}
}()
}