diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-07 12:33:51 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-22 13:09:21 +0200 |
commit | 2e1cfe03e9039c6a8257e56e5898a29522c86ea9 (patch) | |
tree | 1cb9fd9d9024919d733b8198281843f32cf4d112 /apps | |
parent | 67231ed9a75eafe5b417e4525e3d80b1a3f8826b (diff) | |
download | nextcloud-server-2e1cfe03e9039c6a8257e56e5898a29522c86ea9.tar.gz nextcloud-server-2e1cfe03e9039c6a8257e56e5898a29522c86ea9.zip |
Publish an activity when sending a share link via email
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/activity.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/activity.php b/apps/files_sharing/lib/activity.php index 1257e7a445c..63ac2e90b2a 100644 --- a/apps/files_sharing/lib/activity.php +++ b/apps/files_sharing/lib/activity.php @@ -58,6 +58,7 @@ class Activity implements IExtension { const SUBJECT_RESHARED_GROUP_BY = 'reshared_group_by'; const SUBJECT_RESHARED_LINK_BY = 'reshared_link_by'; const SUBJECT_RESHARED_USER_BY = 'reshared_user_by'; + const SUBJECT_SHARED_EMAIL = 'shared_with_email'; const SUBJECT_SHARED_WITH_BY = 'shared_with_by'; /** @var IFactory */ @@ -182,6 +183,8 @@ class Activity implements IExtension { return (string) $l->t('%2$s shared %1$s with you', $params); case self::SUBJECT_SHARED_LINK_SELF: return (string) $l->t('You shared %1$s via link', $params); + case self::SUBJECT_SHARED_EMAIL: + return (string) $l->t('You shared %1$s with %2$s', $params); } } @@ -227,6 +230,11 @@ class Activity implements IExtension { 1 => 'username', 2 => '', ]; + case self::SUBJECT_SHARED_EMAIL: + return array( + 0 => 'file', + 1 => '',// 'email' is neither supported nor planned for now + ); case self::SUBJECT_SHARED_USER_SELF: case self::SUBJECT_SHARED_WITH_BY: |