mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 18:29:54 +00:00
Wanted items timeline
This commit is contained in:
1 parent
641963dc05
commit
cbb55581e1
56 files changed
+681
-40
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user