fix blocked list
This commit is contained in:
parent
608e0394aa
commit
2d32a91c44
|
@ -82,7 +82,7 @@ object Relation extends LilaController {
|
||||||
private def RelatedPager(adapter: AdapterLike[String], page: Int)(implicit ctx: Context) = Paginator(
|
private def RelatedPager(adapter: AdapterLike[String], page: Int)(implicit ctx: Context) = Paginator(
|
||||||
adapter = adapter mapFutureList followship,
|
adapter = adapter mapFutureList followship,
|
||||||
currentPage = page,
|
currentPage = page,
|
||||||
maxPerPage = 20)
|
maxPerPage = 30)
|
||||||
|
|
||||||
private def followship(userIds: Seq[String])(implicit ctx: Context): Fu[List[Related]] =
|
private def followship(userIds: Seq[String])(implicit ctx: Context): Fu[List[Related]] =
|
||||||
UserRepo byIds userIds flatMap { users =>
|
UserRepo byIds userIds flatMap { users =>
|
||||||
|
|
|
@ -70,7 +70,7 @@ final class RelationApi(
|
||||||
|
|
||||||
def blockingPaginatorAdapter(userId: ID) = new BSONAdapter[Blocked](
|
def blockingPaginatorAdapter(userId: ID) = new BSONAdapter[Blocked](
|
||||||
collection = coll,
|
collection = coll,
|
||||||
selector = BSONDocument("u1" -> userId, "r" -> Follow),
|
selector = BSONDocument("u1" -> userId, "r" -> Block),
|
||||||
projection = BSONDocument("u2" -> true, "_id" -> false),
|
projection = BSONDocument("u2" -> true, "_id" -> false),
|
||||||
sort = BSONDocument()).map(_.userId)
|
sort = BSONDocument()).map(_.userId)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue