Wanted items timeline

This commit is contained in:
bashrc committed 2021-08-09 19:41:05 +01:00
1 parent 641963dc05
commit cbb55581e1
56 files changed
+681 -40

No files matched your search

+15
View File
@@ -279,6 +279,21 @@ function notifications {
fi
fi
# send notifications for new wanted items to XMPP/email users
epicyonWantedFile="$epicyonDir/.newWanted"
if [ -f "$epicyonWantedFile" ]; then
if ! grep -q "##sent##" "$epicyonWantedFile"; then
epicyonWantedMessage=$(notification_translate_text 'Wanted')
epicyonWantedFileContent=$(echo "$epicyonWantedMessage")" "$(cat "$epicyonWantedFile")
if [[ "$epicyonWantedFileContent" == *':'* ]]; then
epicyonWantedMessage="Epicyon: $epicyonWantedFileContent"
fi
sendNotification "$USERNAME" "Epicyon" "$epicyonWantedMessage"
echo "##sent##" > "$epicyonWantedFile"
chown ${PROJECT_NAME}:${PROJECT_NAME} "$epicyonWantedFile"
fi
fi
# send notifications for follow requests to XMPP/email users
epicyonFollowFile="$epicyonDir/followrequests.txt"
epicyonFollowNotificationsFile="$epicyonDir/follownotifications.txt"