diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-25 11:45:40 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-25 11:45:40 +0100 |
commit | f067d0ee66fd6fab61fa11bc307c78d45c6a5803 (patch) | |
tree | eaf5b3ba87614d632194c942f1faf1fd1b9ec6f2 /apps/sharebymail | |
parent | 9f915e061c025df983d5385ae4e4e9d3780c3354 (diff) | |
download | nextcloud-server-f067d0ee66fd6fab61fa11bc307c78d45c6a5803.tar.gz nextcloud-server-f067d0ee66fd6fab61fa11bc307c78d45c6a5803.zip |
Correctly match the subjects to the parameters
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/sharebymail')
-rw-r--r-- | apps/sharebymail/lib/Activity.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/sharebymail/lib/Activity.php b/apps/sharebymail/lib/Activity.php index c5d6632d186..58ab0a5cdcd 100644 --- a/apps/sharebymail/lib/Activity.php +++ b/apps/sharebymail/lib/Activity.php @@ -164,12 +164,12 @@ class Activity implements IProvider { $parameters = $event->getSubjectParameters(); switch ($subject) { - case self::SUBJECT_SHARED_EMAIL_BY: + case self::SUBJECT_SHARED_EMAIL_SELF: return [ 'file' => $this->generateFileParameter((int) $event->getObjectId(), $parameters[0]), 'email' => $this->generateEmailParameter($parameters[1]), ]; - case self::SUBJECT_SHARED_EMAIL_SELF: + case self::SUBJECT_SHARED_EMAIL_BY: return [ 'file' => $this->generateFileParameter((int) $event->getObjectId(), $parameters[0]), 'email' => $this->generateEmailParameter($parameters[1]), |