Editor to gemtext half way
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package cethttp
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
@@ -31,7 +32,7 @@ func editHandler(w http.ResponseWriter, r *http.Request) {
|
||||
editedTitle := r.FormValue("title")
|
||||
|
||||
// Update the post content.
|
||||
post.Content = editedContent
|
||||
post.GemtextContent = sql.NullString{String: editedContent, Valid: true}
|
||||
post.Title = editedTitle
|
||||
|
||||
// Save the edited post to the database.
|
||||
|
||||
Reference in New Issue
Block a user