メッセージタイムラインを追加

This commit is contained in:
syuilo 2018-09-18 02:14:12 +09:00
parent 2fad6e6d5f
commit ab83e08bc7
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
11 changed files with 393 additions and 150 deletions

View file

@ -27,6 +27,9 @@ export const meta = {
untilId: $.type(ID).optional.note({
}),
visibility: $.str.optional.note({
}),
}
};
@ -52,6 +55,10 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
_id: -1
};
if (ps.visibility) {
query.visibility = ps.visibility;
}
if (ps.following) {
const followingIds = await getFriendIds(user._id);