🤬
  • Add https://discord.com/api notification hook to the automatic truncation due to Discords 2000 char limit

  • Loading...
  • dgtlmoon committed 2 years ago
    9f4364a1
    1 parent 5bd9eaf9
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    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
Please wait...
Page is in error, reload to recover