Richie
(Richie Rich)
January 9, 2022, 6:49am
1
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
Can anyone shed any light for me so I can let them know?
1 Like
Johani
(Joe)
January 9, 2022, 7:44am
2
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
Richie
(Richie Rich)
January 9, 2022, 8:56am
3
Well, thatās embarrassing to say the least
Thank you for the solution @Johani
2 Likes
system
(system)
Closed
February 8, 2022, 8:56am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.