Remove discord change (look at https://github.com/dgtlmoon/changedetection.io/pull/753 for this change)

This commit is contained in:
Brandon Wees
2022-07-13 18:05:02 -04:00
committed by GitHub
parent 7fb432bf06
commit 23452a1599
+1 -1
View File
@@ -79,7 +79,7 @@ def process_notification(n_object, datastore):
n_title = n_title[0:payload_max_size]
n_body = n_body[0:body_limit]
elif url.startswith('discord://') or url.startswith('https://discord.com/api/webhooks'):
elif url.startswith('discord://'):
# real limit is 2000, but minus some for extra metadata
payload_max_size = 1700
body_limit = max(0, payload_max_size - len(n_title))