Delete post body when using file storage backend

This commit is contained in:
LordMathis 2019-12-09 21:31:54 +01:00
parent fcde6c9548
commit 41870d90d9
No known key found for this signature in database
GPG Key ID: 575849FD91CE470C
1 changed files with 4 additions and 2 deletions

View File

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