diff --git a/api-server/posts.js b/api-server/posts.js index 517617bf4f..751c364c43 100644 --- a/api-server/posts.js +++ b/api-server/posts.js @@ -48,7 +48,7 @@ function get (token, id) { return new Promise((res) => { const posts = getData(token) res( - posts[id].deleted + !posts[id] || posts[id].deleted ? {} : posts[id] )