resolve bugs in community profile display

This commit is contained in:
2025-10-17 11:53:30 -06:00
parent 65c739dc57
commit 137bf35a8b
9 changed files with 40 additions and 17 deletions
+4
View File
@@ -14,6 +14,7 @@ import (
"bytes"
"embed"
"errors"
"fmt"
"image"
"image/gif"
"image/jpeg"
@@ -85,6 +86,9 @@ func AmServeImage(ctxt AmContext) (string, any, error) {
}
}
ctxt.SetRC(http.StatusNotFound)
if err == nil {
err = fmt.Errorf("image not found: %s", ctxt.URLPath())
}
return ErrorPage(ctxt, err)
}