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

FIX: Remove social sharing icons from private contexts #10213

Merged
merged 3 commits into from Jul 13, 2020

Conversation

pmusaraj
Copy link
Contributor

This removes Twitter/Facebook icons in the share dialogs when:

  • in a login-required site
  • in a private message

Themes/plugins can use the new showInPrivateContext option to add their source to these private contexts.

@@ -16,7 +16,10 @@ export default Component.extend({

@discourseComputed
sources() {
return Sharing.activeSources(this.siteSettings.share_links);
const privateContext =
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to compute on this.topic.isPrivateMessage here ?

@pmusaraj pmusaraj merged commit c02e358 into master Jul 13, 2020
@pmusaraj pmusaraj deleted the limit-social-sharing-sources branch July 13, 2020 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants