summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/ProviderFactory.php3
-rw-r--r--lib/public/Activity/IExtension.php1
-rw-r--r--lib/public/RichObjectStrings/definitions.json19
3 files changed, 22 insertions, 1 deletions
diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php
index 457cf117c69..fe9dc0cdfb2 100644
--- a/lib/private/Share20/ProviderFactory.php
+++ b/lib/private/Share20/ProviderFactory.php
@@ -153,7 +153,8 @@ class ProviderFactory implements IProviderFactory {
$l,
$this->serverContainer->getLogger(),
$this->serverContainer->getMailer(),
- $this->serverContainer->getURLGenerator()
+ $this->serverContainer->getURLGenerator(),
+ $this->serverContainer->getActivityManager()
);
}
diff --git a/lib/public/Activity/IExtension.php b/lib/public/Activity/IExtension.php
index a86837892ba..aaa4c869561 100644
--- a/lib/public/Activity/IExtension.php
+++ b/lib/public/Activity/IExtension.php
@@ -103,6 +103,7 @@ interface IExtension {
* Currently known types are:
* * file => will strip away the path of the file and add a tooltip with it
* * username => will add the avatar of the user
+ * * email => will add a mailto link
*
* @param string $app
* @param string $text
diff --git a/lib/public/RichObjectStrings/definitions.json b/lib/public/RichObjectStrings/definitions.json
index 222f6615cf4..494e96c8f76 100644
--- a/lib/public/RichObjectStrings/definitions.json
+++ b/lib/public/RichObjectStrings/definitions.json
@@ -224,5 +224,24 @@
"example": "Support Team"
}
}
+ },
+ "email": {
+ "author": "Nextcloud",
+ "app": "sharebymail",
+ "since": "9.2.0",
+ "parameters": {
+ "id": {
+ "since": "9.2.0",
+ "required": true,
+ "description": "The mail-address used to identify the event on the instance",
+ "example": "test@localhost"
+ },
+ "name": {
+ "since": "9.2.0",
+ "required": true,
+ "description": "The display name of a matching contact or the email (fallback) which should be used in the visual representation",
+ "example": "Foo Bar"
+ }
+ }
}
}