mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-22 06:25:43 +08:00
notify-scripts: add object type and object id
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
d32190660a
commit
0b3f63bf74
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ mapfile -t NC_USERS <<< "$NC_USERS"
|
|||
for user in "${NC_USERS[@]}"
|
||||
do
|
||||
echo "Posting '$SUBJECT' to: $user"
|
||||
"${COMMAND[@]}" notification:generate "$user" "$NC_DOMAIN: $SUBJECT" -l "$MESSAGE"
|
||||
"${COMMAND[@]}" notification:generate "$user" "$NC_DOMAIN: $SUBJECT" -l "$MESSAGE" --object-type='update' --object-id="$SUBJECT"
|
||||
done
|
||||
|
||||
echo "Done!"
|
||||
|
|
|
@ -28,7 +28,7 @@ done
|
|||
for admin in "${NC_ADMIN_USER[@]}"
|
||||
do
|
||||
echo "Posting '$SUBJECT' to: $admin"
|
||||
"${COMMAND[@]}" notification:generate "$admin" "$NC_DOMAIN: $SUBJECT" -l "$MESSAGE"
|
||||
"${COMMAND[@]}" notification:generate "$admin" "$NC_DOMAIN: $SUBJECT" -l "$MESSAGE" --object-type='update' --object-id="$SUBJECT"
|
||||
done
|
||||
|
||||
echo "Done!"
|
||||
|
|
Loading…
Add table
Reference in a new issue