mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 17:43:05 +00:00
revert include time in imported posts
in favor of library side generation to support zip files
This commit is contained in:
parent
9dbf14c05e
commit
4acd35f8cd
1 changed files with 0 additions and 3 deletions
|
@ -9,7 +9,6 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/go-multierror"
|
||||
"github.com/writeas/impart"
|
||||
|
@ -110,12 +109,10 @@ func handleImport(app *App, u *User, w http.ResponseWriter, r *http.Request) err
|
|||
}
|
||||
}
|
||||
coll.hostName = app.cfg.App.Host
|
||||
created := info.ModTime().Truncate(time.Second).UTC().Format("2006-01-02T15:04:05Z")
|
||||
submittedPost := SubmittedPost{
|
||||
Title: &post.Title,
|
||||
Content: &post.Content,
|
||||
Font: "norm",
|
||||
Created: &created,
|
||||
}
|
||||
rp, err := app.db.CreatePost(u.ID, coll.ID, &submittedPost)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue