diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-20 12:40:45 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-06-20 12:40:45 +0200 |
commit | 8b0546e3f9741980ee2c63b3aca04392408b2e02 (patch) | |
tree | 0f6bb74f94d7a69b798bcfb4fa6797f09ad775a6 /lib | |
parent | 2660a3b49c55252782167eb3f1b5d484256a9c2f (diff) | |
download | nextcloud-server-8b0546e3f9741980ee2c63b3aca04392408b2e02.tar.gz nextcloud-server-8b0546e3f9741980ee2c63b3aca04392408b2e02.zip |
Add a flag to allow checking if SVGs are okay
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Activity/Manager.php | 17 | ||||
-rw-r--r-- | lib/public/Activity/IManager.php | 12 |
2 files changed, 29 insertions, 0 deletions
diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php index a8810a3e16b..bbb6f694156 100644 --- a/lib/private/Activity/Manager.php +++ b/lib/private/Activity/Manager.php @@ -57,6 +57,9 @@ class Manager implements IManager { /** @var int */ protected $formattingObjectId; + /** @var bool */ + protected $requirePNG; + /** @var string */ protected $currentUserId; @@ -466,6 +469,20 @@ class Manager implements IManager { } /** + * @param bool $status Set to true, when parsing events should not use SVG icons + */ + public function setRequirePNG($status) { + $this->requirePNG = $status; + } + + /** + * @return bool + */ + public function getRequirePNG() { + return $this->requirePNG; + } + + /** * @param string $app * @param string $text * @param array $params diff --git a/lib/public/Activity/IManager.php b/lib/public/Activity/IManager.php index f5b495807c5..4cdea0e2f74 100644 --- a/lib/public/Activity/IManager.php +++ b/lib/public/Activity/IManager.php @@ -207,6 +207,18 @@ interface IManager { public function isFormattingFilteredObject(); /** + * @param bool $status Set to true, when parsing events should not use SVG icons + * @since 12.0.1 + */ + public function setRequirePNG($status); + + /** + * @return bool + * @since 12.0.1 + */ + public function getRequirePNG(); + + /** * @param string $app * @param string $text * @param array $params |