codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
375 stars 70 forks source link

User avatar blocked when user receives a moderator warning #1357

Open trichoplax opened 1 week ago

trichoplax commented 1 week ago

Describe the bug When a user has a warning they cannot visit any page after signing in until ticking to acknowledge the warning. This is as intended. However, this also prevents loading their avatar image, breaking their avatar at the top right of the page until they tick the box and press continue.

To Reproduce Steps to reproduce the behavior:

  1. As a moderator, issue a moderator warning to a user.
  2. As that user, sign in and see the warning message.
  3. Notice that the avatar has been replaced with the text "user avatar".
  4. Tick the box to acknowledge the warning.
  5. Press Continue.
  6. Notice that the avatar now shows correctly again.

Expected behavior The user avatar could show as normal, by excluding it from the redirect to the warning page.