Delete post body when using file storage backend
This commit is contained in:
parent
fcde6c9548
commit
41870d90d9
|
@ -67,8 +67,10 @@ export class DataHolder {
|
||||||
}
|
}
|
||||||
|
|
||||||
addPost (post) {
|
addPost (post) {
|
||||||
delete post.body
|
if (this.config.storage === 'file') {
|
||||||
this.data.posts.push(post)
|
delete post.body
|
||||||
|
this.data.posts.push(post)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
addOther (filename, data) {
|
addOther (filename, data) {
|
||||||
|
|
Loading…
Reference in New Issue