adjust logic to use sha256sum instead

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2026-09-14 12:40:55 +02:00
parent 3fcce2e8a2
commit 70d38607cc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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."
+1 -1
View File
@@ -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."