Fix activities and links when folders and files are shared:
* When sharing via link, the activity link leads to the user's root instead of the folder
* When sharing an item with a user, the links always lead to the new user's target folder
* When sharing an item with a group, an activity was created for the group