Skip to content

Commit

Permalink
Merge pull request #3905 from wikimedia/6.8-beta
Browse files Browse the repository at this point in the history
Deep link wmf_languageVariantCode assignment fix
  • Loading branch information
dempseyatgithub committed Apr 6, 2021
2 parents d8ff789 + 92e4252 commit da8f341
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Wikipedia/Code/WMFAppViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,9 @@ - (BOOL)processUserActivity:(NSUserActivity *)activity animated:(BOOL)animated c
default: {
NSURL *linkURL = [activity wmf_linkURL];
// Ensure incoming link is fetched in user's preferred variant if applicable
linkURL.wmf_languageVariantCode = [self.dataStore.languageLinkController preferredLanguageVariantCodeForLanguageCode:linkURL.wmf_language];
if (!linkURL.wmf_languageVariantCode) {
linkURL.wmf_languageVariantCode = [self.dataStore.languageLinkController preferredLanguageVariantCodeForLanguageCode:linkURL.wmf_language];
}
if (!linkURL) {
done();
return NO;
Expand Down

0 comments on commit da8f341

Please sign in to comment.