Skip to content

Commit

Permalink
Merge pull request #5554 from nextcloud/enh/5178/add-object-type-and-id
Browse files Browse the repository at this point in the history
notify-scripts: add object type and object id
  • Loading branch information
szaimen authored Nov 8, 2024
2 parents d321906 + 0b3f63b commit ada09ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Containers/nextcloud/notify-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down
2 changes: 1 addition & 1 deletion Containers/nextcloud/notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit ada09ed

Please sign in to comment.