wip
This commit is contained in:
parent
9a282e37be
commit
718060dc85
61 changed files with 132 additions and 119 deletions
|
|
@ -7,7 +7,7 @@ import Post from '../../models/post';
|
|||
import Mute from '../../models/mute';
|
||||
import ChannelWatching from '../../models/channel-watching';
|
||||
import getFriends from '../../common/get-friends';
|
||||
import serialize from '../../serializers/post';
|
||||
import { pack } from '../../models/post';
|
||||
|
||||
/**
|
||||
* Get timeline of myself
|
||||
|
|
@ -128,5 +128,5 @@ module.exports = async (params, user, app) => {
|
|||
});
|
||||
|
||||
// Serialize
|
||||
return await Promise.all(timeline.map(post => serialize(post, user)));
|
||||
return await Promise.all(timeline.map(post => pack(post, user)));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue