Add user default system privacy to river events for friendship and profile picture upload
|Reported by:||biondo11||Owned by:|
After loading a new profile picture and adding some new friends, I realized that the news of these actions were visible in almost all site members, friends or not, in other words it was public news and It is not possibile to change this settings.
To set the default privacy system (usually friends) on new friendships and personal image upload is very simple, you can just change a few lines in some files.
The default privacy system is established by your system configuration.
In this way only friends can see your new photos and your new friends in the activity river!
Profile icon update
If you are using the friend_request plugin go to:
On line 33 change this:
add_to_river('friends/river/create', 'friend', $user->guid, $friend->guid);
add_to_river('friends/river/create', 'friend', $user->guid, $friend->guid, get_default_access($_SESSIONuser?));
TESTED ON Elgg 1.7.6