Fix calculation of friendship rate limit