FIX: Only render group card if user title is from group (PR #9946)

This was failing when a user with a primary_group chose to display a title coming from a badge.


why do we object&.user on one side an object.user on the other ?

Whoops, copy-paste error. Probably harmless, so I’m going to submit as is.