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

Filter social strategies by connection name #340

Merged
merged 2 commits into from
Sep 9, 2016

Conversation

lbalmaceda
Copy link
Contributor

Filter social connections comparing their name instead of the strategy name. Ignore those strategies without connections.

@lbalmaceda lbalmaceda added this to the 2.0.0-rc.1 milestone Sep 6, 2016
@@ -86,6 +86,6 @@ public String getDefaultConnectionName() {
if (!connections.isEmpty()) {
return connections.get(0).getName();
}
return strategyMetadata.getType() == Strategies.Type.SOCIAL ? this.name : null;
return null;
Copy link
Member

Choose a reason for hiding this comment

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

I think this can be solved in 1 line

@lbalmaceda lbalmaceda force-pushed the fix-social-connections-filter branch from 14267ed to 3a7b68c Compare September 7, 2016 14:45
@hzalaz hzalaz merged commit e03c682 into v2 Sep 9, 2016
@hzalaz hzalaz deleted the fix-social-connections-filter branch September 9, 2016 14:31
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