Skip to content
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

✨ Add can't send email warning for users that can not receiv… #176

Merged
merged 12 commits into from
Sep 11, 2024

Conversation

foysalit
Copy link
Contributor

@foysalit foysalit commented Sep 4, 2024

Screenshot 2024-09-04 at 12 33 29

@foysalit foysalit changed the base branch from template-language to main September 5, 2024 18:28
Copy link

render bot commented Sep 5, 2024

Copy link
Collaborator

@bnewbold bnewbold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UX LGTM

}

return DOMAINS_ALLOWING_EMAIL_COMMUNICATION.some((domain) => {
return pdsEndpoint.endsWith(domain)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want the domain to end with .bsky.network rather than bsky.network.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense. but since this is env var, we can just configure it that way in the var, right? maybe the name needs an adjustment so that it's not DOMAINS_ALLOWING_EMAIL_COMMUNICATION and instead DOMAINS_SUFFIXES_ALLOWING_EMAIL_COMMUNICATION?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devinivy do lmk if you have thoughts on this, I'll merge for now and happy to address any different outcome from this as a fast follow.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup we can just configure it that way 👍

lib/constants.ts Outdated
Comment on lines 44 to 45
export const DOMAINS_ALLOWING_EMAIL_COMMUNICATION = (
process.env.NEXT_PUBLIC_DOMAINS_ALLOWING_EMAIL_COMMUNICATION || 'bsky.network'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should default to empty, and configure this specially on our deployments— otherwise this will be the configuration in the distro.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally!

Copy link
Collaborator

@devinivy devinivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple notes, but looking good 👍

@foysalit foysalit requested a review from devinivy September 9, 2024 09:10
@arcalinea arcalinea temporarily deployed to disable-email-based-on-pds - ozone-staging PR #176 September 9, 2024 22:39 — with Render Destroyed
@foysalit foysalit merged commit b5db7ae into main Sep 11, 2024
3 checks passed
@matthieusieben matthieusieben deleted the disable-email-based-on-pds branch November 15, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants