diff options
Diffstat (limited to 'OutboxPost.go')
-rw-r--r-- | OutboxPost.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OutboxPost.go b/OutboxPost.go index 90c30d7..9d39eff 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -339,6 +339,8 @@ func ObjectFromForm(r *http.Request, db *sql.DB, obj ObjectBase) ObjectBase { fileBytes, _ := ioutil.ReadAll(file) tempFile.Write(fileBytes) + + obj.Preview = CreatePreviewObject(obj.Attachment[0]) } obj.AttributedTo = EscapeString(r.FormValue("name")) |