fix: keep ntfy title but drop duplicate body prefix

This commit is contained in:
2025-11-09 21:37:50 +01:00
parent ca5134c0af
commit 4b33efea47

View File

@@ -88,7 +88,7 @@ async function sendSlotNotification({ profileId, storeName, pickupDate, onlyNoti
? `Der Slot am ${dateLabel} wurde erfolgreich gebucht.` ? `Der Slot am ${dateLabel} wurde erfolgreich gebucht.`
: `Es wurde ein Slot am ${dateLabel} gefunden.`; : `Es wurde ein Slot am ${dateLabel} gefunden.`;
const storeLink = storeId ? `https://foodsharing.de/store/${storeId}` : null; const storeLink = storeId ? `https://foodsharing.de/store/${storeId}` : null;
const fullMessage = storeLink ? `${title}\n${baseMessage}\n${storeLink}` : `${title}\n${baseMessage}`; const fullMessage = storeLink ? `${baseMessage}\n${storeLink}` : baseMessage;
await notifyChannels(profileId, { await notifyChannels(profileId, {
title, title,