ストーキング実装

Closes #1511
This commit is contained in:
syuilo
2018-04-19 12:43:25 +09:00
parent d403869945
commit 0d5bc3be66
22 changed files with 310 additions and 80 deletions

View File

@@ -4,7 +4,7 @@
import $ from 'cafy';
import Mute from '../../../../models/mute';
import { pack } from '../../../../models/user';
import getFriends from '../../common/get-friends';
import { getFriendIds } from '../../common/get-friends';
/**
* Get muted users of a user
@@ -34,7 +34,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
if (iknow) {
// Get my friends
const myFriends = await getFriends(me._id);
const myFriends = await getFriendIds(me._id);
query.muteeId = {
$in: myFriends