less relation autoreports

This commit is contained in:
Thibault Duplessis 2014-06-10 00:50:23 +02:00
parent 7f04292640
commit 62fad167d6

View file

@ -80,7 +80,7 @@ final class RelationApi(
case _ => RelationRepo.block(u1, u2) >> limitBlock(u1) >> refresh(u1, u2) >>- case _ => RelationRepo.block(u1, u2) >> limitBlock(u1) >> refresh(u1, u2) >>-
bus.publish(lila.hub.actorApi.relation.Block(u1, u2), 'relation) >>- bus.publish(lila.hub.actorApi.relation.Block(u1, u2), 'relation) >>-
(nbBlockers(u2) zip nbFollowers(u2)).andThen { (nbBlockers(u2) zip nbFollowers(u2)).andThen {
case Success((blockers, followers)) if blockers > 9 && blockers > (followers / 5) => case Success((blockers, followers)) if blockers >= 20 && blockers > followers =>
reporter ! Blocked(u2, blockers, followers) reporter ! Blocked(u2, blockers, followers)
} }
} }