"Changed profile picture" not public visible?

Dominik L Posted in General Discussion 7 months ago

when someone uploads a new profile picture I see it on the public wall as an admin, but normal users cannot see it, is that correct?

Replies
Indonesian Arsalan Shah Replied 7 months ago

Already mentioned to override action in your component with that line removed.

Unregister action and register again in your component

German Dominik L Replied 7 months ago

and when I comment out the line, I need to watch out when updating

is there any better solution?

German Dominik L Replied 7 months ago

Nope, I contacted you like a year ago because I had the same problem and I forgot how to change that

Indonesian Arsalan Shah Replied 7 months ago

Some time ago i think you contacted to remove this so no one can see it. By default everyone can see if user upload it. You can simply overwrite the action in your component and comment out the line

https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/master/components/OssnProfile/actions/photo/upload.php#L47

German Dominik L Replied 7 months ago

Nevermind, I found it!

Can I overwrite OssnProfile/classes with my own component, so that function addPhotoWallPost is always

if($this->wall->Post('null:data', '', '', OSSN_PUBLIC)){

even after update?