fix blocked list

This commit is contained in:
Thibault Duplessis 2016-01-24 03:09:38 +07:00
parent 608e0394aa
commit 2d32a91c44
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ object Relation extends LilaController {
private def RelatedPager(adapter: AdapterLike[String], page: Int)(implicit ctx: Context) = Paginator(
adapter = adapter mapFutureList followship,
currentPage = page,
maxPerPage = 20)
maxPerPage = 30)
private def followship(userIds: Seq[String])(implicit ctx: Context): Fu[List[Related]] =
UserRepo byIds userIds flatMap { users =>

View file

@ -70,7 +70,7 @@ final class RelationApi(
def blockingPaginatorAdapter(userId: ID) = new BSONAdapter[Blocked](
collection = coll,
selector = BSONDocument("u1" -> userId, "r" -> Follow),
selector = BSONDocument("u1" -> userId, "r" -> Block),
projection = BSONDocument("u2" -> true, "_id" -> false),
sort = BSONDocument()).map(_.userId)