mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-29 10:04:43 +08:00
Merge pull request #5554 from nextcloud/enh/5178/add-object-type-and-id
notify-scripts: add object type and object id
This commit is contained in:
commit
ada09ed674
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