mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-09 02:04:01 +02:00
wip
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import $ from 'cafy';
|
||||
import { default as Channel, IChannel } from '../../models/channel';
|
||||
import Post from '../../models/post';
|
||||
import serialize from '../../serializers/post';
|
||||
import { pack } from '../../models/post';
|
||||
|
||||
/**
|
||||
* Show a posts of a channel
|
||||
@@ -74,6 +74,6 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(posts.map(async (post) =>
|
||||
await serialize(post, user)
|
||||
await pack(post, user)
|
||||
)));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user