From 70d38607ccd640c2d215716058821feb3516516a Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Mon, 14 Sep 2026 12:40:55 +0200 Subject: [PATCH] adjust logic to use sha256sum instead Signed-off-by: Simon L. --- Containers/nextcloud/notify-all.sh | 2 +- Containers/nextcloud/notify.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Containers/nextcloud/notify-all.sh b/Containers/nextcloud/notify-all.sh index 27fd0892..00b3ce9b 100644 --- a/Containers/nextcloud/notify-all.sh +++ b/Containers/nextcloud/notify-all.sh @@ -15,7 +15,7 @@ MESSAGE="$2" # The object-id is limited to 64 characters, so hash the subject to get a # stable identifier of fixed length that is unique per subject. -OBJECT_ID="$(printf '%s' "$SUBJECT" | md5sum | cut -d ' ' -f1)" +OBJECT_ID="$(printf '%s' "$SUBJECT" | sha256sum | cut -c1-64)" if [ "$("${COMMAND[@]}" config:app:get notifications enabled)" = "no" ]; then echo "Cannot send notification as notification app is not enabled." diff --git a/Containers/nextcloud/notify.sh b/Containers/nextcloud/notify.sh index 094bb60a..c94ed2ae 100644 --- a/Containers/nextcloud/notify.sh +++ b/Containers/nextcloud/notify.sh @@ -15,7 +15,7 @@ MESSAGE="$2" # The object-id is limited to 64 characters, so hash the subject to get a # stable identifier of fixed length that is unique per subject. -OBJECT_ID="$(printf '%s' "$SUBJECT" | md5sum | cut -d ' ' -f1)" +OBJECT_ID="$(printf '%s' "$SUBJECT" | sha256sum | cut -c1-64)" if [ "$("${COMMAND[@]}" config:app:get notifications enabled)" = "no" ]; then echo "Cannot send notification as notification app is not enabled."