Framing this as judicial activism is false. Many sentencing arrangements include - with the agreement of the defendant (since it is their rights in this case) - to have other related activities factored in exactly this manner.
It happens all the time in pleas and diversion agreements, so don’t frame it as a reckless lone judge going off the reservation.