Skip to content

Commit 530329a

Browse files
committed
minor #14046 [Notifier] Update SlackOptions code example (loru88)
This PR was merged into the 5.1 branch. Discussion ---------- [Notifier] Update SlackOptions code example If you copy and paste the SlackOptions as it was, Slack gives back the error `invalid blocks`. When I was trying to use the Slack notifier component, I couldn't understand why and I found out is because Slack needs a working URL to an image, so I suggest to this change to help other developers when they will reach the same issue. Apparently Slack does not support SVG and the logo from here https://symfony.com/logo are cropped in the Slack message. For this reason, I took the apple-touch icon URL, because it fits well in the Slack message. Commits ------- d6f8fd8 Update chatters.rst
2 parents cdd961b + d6f8fd8 commit 530329a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notifier/chatters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ some interactive options called `Block elements`_::
7777
->text('The Symfony Community')
7878
->accessory(
7979
new SlackImageBlockElement(
80-
'https://example.com/symfony-logo.png',
80+
'https://symfony.com/favicons/apple-touch-icon.png',
8181
'Symfony'
8282
)
8383
)

0 commit comments

Comments
 (0)