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: Do not show nested user cards. #6621

Merged
merged 1 commit into from
Nov 19, 2018
Merged

Conversation

nbianca
Copy link
Member

@nbianca nbianca commented Nov 16, 2018

No description provided.

@discoursebot
Copy link

You've signed the CLA, nbianca. Thank you! This pull request is ready for review.

@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/links-to-users-from-user-cards/101857/3

@@ -31,6 +31,13 @@ export default Ember.Mixin.create({
return false;
}

// Don't show nested
if ($target.parents('.card-content').length) {
Copy link
Member

Choose a reason for hiding this comment

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

This can probably be merged with the previous condition ("Don't show on mobile").

Copy link
Member

@ZogStriP ZogStriP left a comment

Choose a reason for hiding this comment

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

This also needs a test ;)

@ZogStriP ZogStriP merged commit f2c2274 into discourse:master Nov 19, 2018
@nbianca nbianca deleted the fix_cards branch December 9, 2018 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants