add activity if public shared file/folder was downloaded

Add activity notification if a public shared file/folder was downloaded

fix #12928 
fix https://github.com/owncloud/activity/issues/103

cc @nickvergessen 
`$type` may be undefined,
the publishActivity() call should have been moved into the if() aswell