Skip to content

Commit

Permalink
fix image in notification
Browse files Browse the repository at this point in the history
  • Loading branch information
fiste788 committed Apr 10, 2024
1 parent dd542fe commit 211aeb0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 32 deletions.
63 changes: 32 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Command/SendTestNotificationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function execute(Arguments $args, ConsoleIo $io): ?int
'Notifica di test',
'Testo molto lungo che ora non sto a scrivere perchè non ho tempo'
)
->withImage('https://api.fantamanajer.it/files/teams/55/photo/600w/kebab.jpg')
->withImage($team->photo_url['600w'] ?? '')
->withTag('missing-lineup-' . $this->currentMatchday->number)
->renotify()
->interactionRequired()
Expand Down
1 change: 1 addition & 0 deletions src/Utility/AngularPushMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function jsonSerialize(): array
'body' => $this->getBody(),
'dir' => $this->getDir(),
'icon' => $this->getIcon(),
'image' => $this->getImage(),
'badge' => $this->getBadge(),
'lang' => $this->getLang(),
'renotify' => $this->getRenotify(),
Expand Down

0 comments on commit 211aeb0

Please sign in to comment.