Finding members by hidden nickname should not happen

One-sentence description

Finding members by hidden nickname should not happen

Current behaviour

If a user has a nickname but has display options set to hide it, they still appear in search results that match the nickname. This can lead to confusion.

Expected behaviour

When a user does not display their nickname as part of their display name, it should not be possible to find them based on their nickname.

Steps to reproduce

  1. Give yourself a nickname (preferably something unique)
  2. Set your name preference to not display the nickname
  3. Search by keyword for your nickname