summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/context.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-02 08:21:30 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-02 08:21:30 +0900
commit718060dc855e09f270b8e19c089ed3c3743665e0 (patch)
tree334ea8c7dcd04153da311cf6073407f6f14eb423 /src/api/endpoints/posts/context.ts
parentwip (diff)
downloadsharkey-718060dc855e09f270b8e19c089ed3c3743665e0.tar.gz
sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.tar.bz2
sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.zip
wip
Diffstat (limited to 'src/api/endpoints/posts/context.ts')
-rw-r--r--src/api/endpoints/posts/context.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/context.ts b/src/api/endpoints/posts/context.ts
index bad59a6bee..3051e7af17 100644
--- a/src/api/endpoints/posts/context.ts
+++ b/src/api/endpoints/posts/context.ts
@@ -3,7 +3,7 @@
*/
import $ from 'cafy';
import Post from '../../models/post';
-import serialize from '../../serializers/post';
+import { pack } from '../../models/post';
/**
* Show a context of a post
@@ -60,5 +60,5 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
// Serialize
res(await Promise.all(context.map(async post =>
- await serialize(post, user))));
+ await pack(post, user))));
});