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,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