Extract repeated logic into #avatar_icon_for.
This essentially allows to pass both user and email, so that we can either prefer the user to retrieve the avatar or (if user is not present) fall back to the email lookup.
Showing
Please register or sign in to comment