1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 05:05:54 +02:00

Post --> Note

Closes #1411
This commit is contained in:
syuilo
2018-04-08 02:30:37 +09:00
parent c7106d250c
commit a1b490afa7
167 changed files with 4440 additions and 1762 deletions

View File

@@ -3,7 +3,7 @@
*/
import $ from 'cafy';
import Favorite from '../../../../models/favorite';
import { pack } from '../../../../models/post';
import { pack } from '../../../../models/note';
/**
* Get followers of a user
@@ -39,6 +39,6 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
// Serialize
res(await Promise.all(favorites.map(async favorite =>
await pack(favorite.postId)
await pack(favorite.noteId)
)));
});