Procházet zdrojové kódy

Suppress log when editing post or its metadata

This adds the instance's Hostname to the collection data loaded when
editing a collection post or its metadata. While not technically needed
in this situation, it suppresses an alarming error log.

Resolves #216
pull/218/head
Matt Baer před 4 roky
rodič
revize
d8f77585f5
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. +2
    -0
      pad.go

+ 2
- 0
pad.go Zobrazit soubor

@@ -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)


Načítá se…
Zrušit
Uložit