Skip to content

Commit

Permalink
Fix url parsing in social media infos
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanLebrument committed Dec 28, 2015
1 parent 0ade103 commit a75e982
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sources/APContact+EasyMapping.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ + (EKObjectMapping *)objectMapping {
} reverseBlock:^id(id value) {
return [socialNetworkTypes allKeysForObject:value].lastObject;
}];
[mapping mapPropertiesFromArray:@[@"username", @"userIdentifier"]];
[mapping mapKeyPath:@"url" toProperty:@"url"
withValueBlock:[EKMappingBlocks urlMappingBlock]
reverseBlock:[EKMappingBlocks urlReverseMappingBlock]];
[mapping mapPropertiesFromArray:@[@"username", @"userIdentifier", @"url"]];
}];
}

Expand Down

0 comments on commit a75e982

Please sign in to comment.