notifications
notifications copied to clipboard
test message for custom webhook only works on plain text
Describe the bug no matter what content type that user defines when creating the custom webhook channel. For sending test message, it's always send a plain text "test mesaage xxx xxx". Because it's pre-defined plain text in backend for any channel type. That leads to failure, since custom webhook could be created to accept any content type.
e.g. Test message will never be sent successfully to a custom webhook defined as accepting json. Furthermore, accepting json could be defined to accept any json or json with certain fields with certiain keys
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Plugins Please list all plugins currently enabled.
Screenshots If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
- OS: [e.g. iOS]
- Version [e.g. 22]
Additional context Add any other context about the problem here.