diff --git a/apps/sharebymail/lib/Activity.php b/apps/sharebymail/lib/Activity.php index c5d6632d18..58ab0a5cdc 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]),