■ ■ ■ ■ ■ ■
changedetectionio/notification.py
| skipped 77 lines |
78 | 78 | | n_title = n_title[0:payload_max_size] |
79 | 79 | | n_body = n_body[0:body_limit] |
80 | 80 | | |
81 | | - | elif url.startswith('discord://') or url.startswith('https://discordapp.com/api/webhooks'): |
| 81 | + | elif url.startswith('discord://') or url.startswith('https://discordapp.com/api/webhooks') or url.startswith('https://discord.com/api'): |
82 | 82 | | # real limit is 2000, but minus some for extra metadata |
83 | 83 | | payload_max_size = 1700 |
84 | 84 | | body_limit = max(0, payload_max_size - len(n_title)) |
| skipped 84 lines |