TODO note
This commit is contained in:
parent
d783db98a2
commit
ff50adac78
2
user.go
2
user.go
|
@ -329,7 +329,7 @@ func (user User) CreateNewPost(meta PostMeta, content string) (Post, error) {
|
||||||
initial_content := ""
|
initial_content := ""
|
||||||
initial_content += "---\n"
|
initial_content += "---\n"
|
||||||
// write meta
|
// write meta
|
||||||
meta_bytes, err := yaml.Marshal(meta)
|
meta_bytes, err := yaml.Marshal(meta) // TODO: this should be down by the Post
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &GenericPost{}, err
|
return &GenericPost{}, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue