-
Notifications
You must be signed in to change notification settings - Fork 51
feature: send email to internal users of circles when shared with circle #2050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: yemkareems <[email protected]>
Signed-off-by: yemkareems <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this kind of logic supposed to be implemented through IShareProviderWithNotification?
Signed-off-by: yemkareems <[email protected]>
Refactored service to provider |
…WithNotification and set share sendmail to true for circle share in both share and wrapper objects. Send public share link in email. Rename provider to helper Signed-off-by: yemkareems <[email protected]>
…efactor tests Signed-off-by: yemkareems <[email protected]>
Signed-off-by: yemkareems <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops I forgot to submit my review
Signed-off-by: yemkareems <[email protected]>
$initiatorUser = $this->userManager->get($initiator); | ||
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels quite dangerous, there could easily be an overlap of the getSharedBy value matching a uid by accident.
…dition checked once, sendShareNotification type hinting done, sendUserShareMail passing only the share and arguments type hinted, tests refactored Signed-off-by: yemkareems <[email protected]>
…b.com:nextcloud/circles into feature/notify-internal-users-on-circle-share
feature: send email to internal users of circles when shared with circle