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