Skip to content
Snippets Groups Projects

Hide user avatar for blocked and unconfirmed users

Merged Drew Blessing requested to merge dblessing_avatar_for_blocked_users into master

What does this MR do and why?

Follow-up to #341325 (closed) and !75032 (merged) (merged).

We should mask the user avatar for blocked or unconfirmed users to avoid it being used for spam. You can see in screenshots below this also masks the Gravatar for a user, so they can't even show spam via that external service when they're blocked in GitLab.

Admin users are always able to see the user avatar regardless of status.

Screenshots or screen recordings

Before

Screen_Shot_2021-12-03_at_10.31.47_AM

After

Screen_Shot_2021-12-03_at_10.24.48_AM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Drew Blessing

Merge request reports

Merged results pipeline #430147560 passed

Pipeline: GitLab

#430167169

    Merged results pipeline passed for 661aedf4

    Test coverage 86.80% from 2 jobs

    Merged by Sean McGivernSean McGivern 3 years ago (Dec 15, 2021 1:46pm UTC)

    Loading

    Pipeline #430224385 passed

    Pipeline passed for 8e8e9cb6 on master

    Test coverage 78.58% from 2 jobs
    8 environments impacted.

    Activity

    Filter activity
    • Approvals
    • Assignees & reviewers
    • Comments (from bots)
    • Comments (from users)
    • Commits & branches
    • Edits
    • Labels
    • Lock status
    • Mentions
    • Merge request status
    • Tracking
    Please register or sign in to reply
    Loading