Skip to content

Commit

Permalink
fix: keep png compatibility for activities
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed Aug 29, 2024
1 parent f4dde3c commit d7d08dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Activity/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ public function parse($language, IEvent $event, ?IEvent $previousEvent = null):

$l = $this->languageFactory->get('announcementcenter', $language);

$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('announcementcenter', 'announcementcenter-dark.png')));
if ($this->activityManager->getRequirePNG()) {
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('announcementcenter', 'announcementcenter-dark.png')));
} else {
$event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('announcementcenter', 'announcementcenter-dark.svg')));
}

$parameters = $this->getParameters($event);

Expand Down

0 comments on commit d7d08dc

Please sign in to comment.