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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.