Add activities for shared users when a file is added or deleted

Fix #1670