aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-07 11:05:00 +0200
committerGitHub <noreply@github.com>2017-07-07 11:05:00 +0200
commitb4deba207856e92adfbf7239ea7d2420157993dd (patch)
tree22bc71158a91e74e1d28c639c0801a735a78db76 /apps/comments
parentb1520a645833c2047103a2cf550f5c21b1c25586 (diff)
parentca3a6ec6077e4248d56550b1acb19ab72546e808 (diff)
downloadnextcloud-server-b4deba207856e92adfbf7239ea7d2420157993dd.tar.gz
nextcloud-server-b4deba207856e92adfbf7239ea7d2420157993dd.zip
Merge pull request #5483 from nextcloud/issue-5075-png-files-for-activity-emails
Use PNGs for icons in activity emails
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/img/comments-dark.svg1
-rw-r--r--apps/comments/lib/Activity/Provider.php6
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/comments/img/comments-dark.svg b/apps/comments/img/comments-dark.svg
new file mode 100644
index 00000000000..d331ea7711b
--- /dev/null
+++ b/apps/comments/img/comments-dark.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32" viewBox="0 0 32 32"><path fill="#000" d="M16 3C7.163 3 0 7.925 0 14s7.163 11 16 11c.5 0 .98-.032 1.47-.063L26 32v-9.406c3.658-2.017 6-5.12 6-8.595 0-6.076-7.164-11-16-11z"/></svg>
diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php
index c55982827b3..7bf686e796e 100644
--- a/apps/comments/lib/Activity/Provider.php
+++ b/apps/comments/lib/Activity/Provider.php
@@ -87,7 +87,11 @@ class Provider implements IProvider {
if ($event->getSubject() === 'add_comment_subject') {
$this->parseMessage($event);
- $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.svg')));
+ if ($this->activityManager->getRequirePNG()) {
+ $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.png')));
+ } else {
+ $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.svg')));
+ }
if ($this->activityManager->isFormattingFilteredObject()) {
try {