working on updating SetAttachment to be fully Venice-compatible (in progress)
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user