working on updating SetAttachment to be fully Venice-compatible (in progress)

This commit is contained in:
2026-01-19 23:21:08 -07:00
parent 652cdf8477
commit 31b4a5bbd2
4 changed files with 52 additions and 5 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ func AttachmentUpload(ctxt ui.AmContext) (string, any, error) {
var data []byte
data, err = slurpFile(file)
if err == nil {
err = post.SetAttachment(ctxt.Ctx(), file.Filename, file.Header.Get("Content-Type"), int32(file.Size), data)
err = post.SetAttachment(ctxt.Ctx(), ctxt.CurrentUser(), file.Filename, file.Header.Get("Content-Type"), int32(file.Size), data)
if err == nil {
return "redirect", target, nil
}