Why can't we see own "Profile Header" images? 🤔

Our community members (and I) are wondering why they can’t see their own “Profile Header” image when viewing their own profiles.

They usually want to see how their profile page looks to other people but they have no way of viewing their image once uploaded.

I’m guessing there’s a reason for this but I can’t think what that reason might be :blush:

Can anyone shed any light for me so I can let them know?

1 Like

The container that has the background is collapsed by default if you’re viewing your own profile. If you click on expand here

you’ll see the background.

It’s collapsed by default if you’re viewing your own profile because you usually care more about the information below the image rather than the image itself - especially on mobile.

If you’d like to override this behavior, you can add something like this in your theme’s common > header tab.

<script type="text/discourse-plugin" version="0.8">
  const discourseComputed = require("discourse-common/utils/decorators").default;

  api.modifyClass("controller:user", {
    @discourseComputed
    viewingSelf() {
      return false;
    }
  });
</script>
4 Likes

Well, that’s embarrassing to say the least :man_facepalming:

Thank you for the solution @Johani :slight_smile:

2 Likes