diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-02-07 16:46:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 16:46:02 +0100 |
commit | 668b706f02dac4f14592e5d14931832640974bae (patch) | |
tree | adbf74bc3b6ab6bcda20d32752c334404cadde4e /lib/public/Activity | |
parent | baa6a2d52cb48cb666ae0bfd0f75459c190086f8 (diff) | |
parent | 47f63da07cb8fd9edd0cc2751029d14ed39072e6 (diff) | |
download | nextcloud-server-668b706f02dac4f14592e5d14931832640974bae.tar.gz nextcloud-server-668b706f02dac4f14592e5d14931832640974bae.zip |
Merge pull request #13819 from nextcloud/bugfix/noid/unify-html-encoding-handling-with-other-ros-apps
Unify the HTML encoding handling with other ROS apps
Diffstat (limited to 'lib/public/Activity')
-rw-r--r-- | lib/public/Activity/IEvent.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php index aee00039b65..e380eca5c24 100644 --- a/lib/public/Activity/IEvent.php +++ b/lib/public/Activity/IEvent.php @@ -100,6 +100,17 @@ interface IEvent { public function setSubject(string $subject, array $parameters = []): self; /** + * Set a parsed subject + * + * HTML is not allowed in the parsed subject and will be escaped + * automatically by the clients. You can use the RichObjectString system + * provided by the Nextcloud server to highlight important parameters via + * the setRichSubject method, but make sure, that a plain text message is + * always set via setParsedSubject, to support clients which can not handle + * rich strings. + * + * See https://github.com/nextcloud/server/issues/1706 for more information. + * * @param string $subject * @return $this * @throws \InvalidArgumentException if the subject is invalid @@ -114,6 +125,16 @@ interface IEvent { public function getParsedSubject(): string; /** + * Set a RichObjectString subject + * + * HTML is not allowed in the rich subject and will be escaped automatically + * by the clients, but you can use the RichObjectString system provided by + * the Nextcloud server to highlight important parameters. + * Also make sure, that a plain text subject is always set via + * setParsedSubject, to support clients which can not handle rich strings. + * + * See https://github.com/nextcloud/server/issues/1706 for more information. + * * @param string $subject * @param array $parameters * @return $this @@ -146,6 +167,17 @@ interface IEvent { public function setMessage(string $message, array $parameters = []): self; /** + * Set a parsed message + * + * HTML is not allowed in the parsed message and will be escaped + * automatically by the clients. You can use the RichObjectString system + * provided by the Nextcloud server to highlight important parameters via + * the setRichMessage method, but make sure, that a plain text message is + * always set via setParsedMessage, to support clients which can not handle + * rich strings. + * + * See https://github.com/nextcloud/server/issues/1706 for more information. + * * @param string $message * @return $this * @throws \InvalidArgumentException if the message is invalid @@ -160,6 +192,16 @@ interface IEvent { public function getParsedMessage(): string; /** + * Set a RichObjectString message + * + * HTML is not allowed in the rich message and will be escaped automatically + * by the clients, but you can use the RichObjectString system provided by + * the Nextcloud server to highlight important parameters. + * Also make sure, that a plain text message is always set via + * setParsedMessage, to support clients which can not handle rich strings. + * + * See https://github.com/nextcloud/server/issues/1706 for more information. + * * @param string $message * @param array $parameters * @return $this |