summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/replies.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/posts/replies.ts')
-rw-r--r--src/api/endpoints/posts/replies.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/endpoints/posts/replies.ts b/src/api/endpoints/posts/replies.ts
index 3fd6a46769..613c4fa24c 100644
--- a/src/api/endpoints/posts/replies.ts
+++ b/src/api/endpoints/posts/replies.ts
@@ -2,8 +2,7 @@
* Module dependencies
*/
import $ from 'cafy';
-import Post from '../../models/post';
-import serialize from '../../serializers/post';
+import Post, { pack } from '../../models/post';
/**
* Show a replies of a post
@@ -50,5 +49,5 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
// Serialize
res(await Promise.all(replies.map(async post =>
- await serialize(post, user))));
+ await pack(post, user))));
});