perf: Don't load user from DB where not necessary
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: eseliger
In a couple of places, we used CurrentUser, which reaches out to the DB to get the entire user record. However, we only ever needed the user ID, which we already validated in the context, so we can just use the actor package. It saves a DB request :)
Push commits to the source branch or add previously merged commits to review them.