|
|
|
|
@ -25,8 +25,6 @@ use OCP\L10N\IFactory;
|
|
|
|
|
class Provider implements IProvider {
|
|
|
|
|
/** @var IL10N */
|
|
|
|
|
protected $l;
|
|
|
|
|
/** @var IL10N */
|
|
|
|
|
protected $activityLang;
|
|
|
|
|
|
|
|
|
|
/** @var string[] cached displayNames - key is the cloud id and value the displayname */
|
|
|
|
|
protected $displayNames = [];
|
|
|
|
|
@ -59,7 +57,6 @@ class Provider implements IProvider {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->l = $this->languageFactory->get('files', $language);
|
|
|
|
|
$this->activityLang = $this->languageFactory->get('activity', $language);
|
|
|
|
|
|
|
|
|
|
if ($this->activityManager->isFormattingFilteredObject()) {
|
|
|
|
|
try {
|
|
|
|
|
@ -114,7 +111,7 @@ class Provider implements IProvider {
|
|
|
|
|
|
|
|
|
|
if (!isset($parsedParameters['user'])) {
|
|
|
|
|
// External user via public link share
|
|
|
|
|
$subject = str_replace('{user}', $this->activityLang->t('"remote account"'), $subject);
|
|
|
|
|
$subject = str_replace('{user}', $this->l->t('"remote account"'), $subject);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->setSubjects($event, $subject, $parsedParameters);
|
|
|
|
|
@ -232,7 +229,7 @@ class Provider implements IProvider {
|
|
|
|
|
|
|
|
|
|
if (!isset($parsedParameters['user'])) {
|
|
|
|
|
// External user via public link share
|
|
|
|
|
$subject = str_replace('{user}', $this->activityLang->t('"remote account"'), $subject);
|
|
|
|
|
$subject = str_replace('{user}', $this->l->t('"remote account"'), $subject);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->setSubjects($event, $subject, $parsedParameters);
|
|
|
|
|
|