Skip to content

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

yemkareems
Copy link

feature: send email to internal users of circles when shared with circle

@yemkareems yemkareems added this to the Nextcloud 32 milestone Jun 30, 2025
@yemkareems yemkareems self-assigned this Jun 30, 2025
Copy link
Member

@provokateurin provokateurin left a 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?

@yemkareems
Copy link
Author

Isn't this kind of logic supposed to be implemented through IShareProviderWithNotification?

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]>
@yemkareems yemkareems requested a review from provokateurin July 8, 2025 07:03
Copy link
Member

@provokateurin provokateurin left a 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

@yemkareems yemkareems requested a review from provokateurin July 8, 2025 07:25
Comment on lines +229 to +230
$initiatorUser = $this->userManager->get($initiator);
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants