Skip to content

Commit

Permalink
Merge pull request #218 from writeas/fix-empty-hostname-editing
Browse files Browse the repository at this point in the history
Suppress log when editing a collection post or its metadata
  • Loading branch information
thebaer committed Dec 11, 2019
2 parents 88a3ed7 + d8f7758 commit 6a5d49e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pad.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6a5d49e

Please sign in to comment.