forked from mirrors/misskey
wip
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
const ms = require('ms');
|
||||
import $ from 'cafy';
|
||||
import Post from '../../models/post';
|
||||
import serialize from '../../serializers/post';
|
||||
import { pack } from '../../models/post';
|
||||
|
||||
/**
|
||||
* Get trend posts
|
||||
@@ -76,5 +76,5 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(posts.map(async post =>
|
||||
await serialize(post, user, { detail: true }))));
|
||||
await pack(post, user, { detail: true }))));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user