Merge pull request #218 from writeas/fix-empty-hostname-editing

Suppress log when editing a collection post or its metadata
pull/224/head
Matt Baer 5 years ago committed by GitHub
commit 6a5d49eeb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pad.go

@ -92,6 +92,7 @@ func handleViewPad(app *App, w http.ResponseWriter, r *http.Request) error {
if err != nil {
return err
}
appData.EditCollection.hostName = app.cfg.App.Host
} else {
// Editing a floating article
appData.Post = getRawPost(app, action)
@ -161,6 +162,7 @@ func handleViewMeta(app *App, w http.ResponseWriter, r *http.Request) error {
if err != nil {
return err
}
appData.EditCollection.hostName = app.cfg.App.Host
} else {
// Editing a floating article
appData.Post = getRawPost(app, action)

Loading…
Cancel
Save