apps/sharebymail/lib/ShareByMailProvider.php
/**
	 * create activity if a file/folder was shared by mail
	 *
	 * @param IShare $share
	 * @param string $sharedWith
	 * @param bool $sendToSelf
	 */
create activity if a file/folder was shared by mail
@param IShare $share
@param string $sharedWith
@param bool $sendToSelf
create activity if a file / folder was shared by mail @param IShare $share @param string $sharedWith @param bool $sendToSelf
protected function createPasswordSendActivity(IShare $share, $sharedWith, $sendToSelf) {
		$userFolder = $this->rootFolder->getUserFolder($share->getSharedBy());
		if ($sendToSelf) {
			$this->publishActivity(
				Activity::SUBJECT_SHARED_EMAIL_PASSWORD_SEND_SELF,
				[$userFolder->getRelativePath($share->getNode()->getPath())],
				$share->getSharedBy(),
				$share->getNode()->getId(),
				$userFolder->getRelativePath($share->getNode()->getPath())
			);
		} else {
			$this->publishActivity(
				Activity::SUBJECT_SHARED_EMAIL_PASSWORD_SEND,
				[$userFolder->getRelativePath($share->getNode()->getPath()), $sharedWith],
				$share->getSharedBy(),
				$share->getNode()->getId(),
				$userFolder->getRelativePath($share->getNode()->getPath())
			);
		}
	}
protected function createPasswordSendActivity ( IShare $ share , $ sharedWith , $ sendToSelf ) { $ userFolder = $ this -> rootFolder -> getUserFolder ( $ share -> getSharedBy ( ) ) ; if ( $ sendToSelf ) { $ this -> publishActivity ( Activity :: SUBJECT_SHARED_EMAIL_PASSWORD_SEND_SELF , [ $ userFolder -> getRelativePath ( $ share -> getNode ( ) -> getPath ( ) ) ] , $ share -> getSharedBy ( ) , $ share -> getNode ( ) -> getId ( ) , $ userFolder -> getRelativePath ( $ share -> getNode ( ) -> getPath ( ) ) ) ; } else { $ this -> publishActivity ( Activity :: SUBJECT_SHARED_EMAIL_PASSWORD_SEND , [ $ userFolder -> getRelativePath ( $ share -> getNode ( ) -> getPath ( ) ) , $ sharedWith ] , $ share -> getSharedBy ( ) , $ share -> getNode ( ) -> getId ( ) , $ userFolder -> getRelativePath ( $ share -> getNode ( ) -> getPath ( ) ) ) ; } }
create activity if a file/folder was shared by mail
 @param IShare $share
 @param string $sharedWith
 @param bool $sendToSelf
create activity if a file / folder was shared by mail @param IShare $share @param string $sharedWith @param bool $sendToSelf