]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly match the subjects to the parameters 2312/head
authorJoas Schilling <coding@schilljs.com>
Fri, 25 Nov 2016 10:45:40 +0000 (11:45 +0100)
committerJoas Schilling <coding@schilljs.com>
Fri, 25 Nov 2016 10:45:40 +0000 (11:45 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/sharebymail/lib/Activity.php

index c5d6632d1865239d86cf6b00b0b0f0e14019deb3..58ab0a5cdcdcf1efb55c8a1a1d762e4a9689eb40 100644 (file)
@@ -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]),