Skip to content

Commit

Permalink
Merge pull request #1992 from wikimedia/fix/nearby-list-peek-extracts/T…
Browse files Browse the repository at this point in the history
…183023

Fix missing extracts on nearby list view peeks.
  • Loading branch information
joewalsh committed Dec 15, 2017
2 parents 6f2f583 + db24157 commit e1e9e9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Wikipedia/Code/WMFLocationSearchFetcher.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#import <WMF/AFHTTPSessionManager+WMFDesktopRetry.h>
#import <WMF/WMFLocalization.h>
#import <WMF/UIScreen+WMFImageWidth.h>
#import <WMF/WMFNumberOfExtractCharacters.h>

//Networking
#import <WMF/MWNetworkActivityIndicatorManager.h>
Expand Down Expand Up @@ -204,7 +205,7 @@ - (NSDictionary *)serializedParams:(WMFLocationSearchRequestParameters *)params
[NSString stringWithFormat:@"%f|%f", params.region.center.latitude, params.region.center.longitude];
return @{
@"action": @"query",
@"prop": @"coordinates|pageimages|pageterms",
@"prop": @"coordinates|pageimages|pageterms|extracts",
@"coprop": @"type|dim",
@"colimit": @(params.numberOfResults),
@"pithumbsize": [[UIScreen mainScreen] wmf_nearbyThumbnailWidthForScale],
Expand All @@ -216,6 +217,10 @@ - (NSDictionary *)serializedParams:(WMFLocationSearchRequestParameters *)params
@"codistancefrompoint": coords,
@"ggsradius": @(params.region.radius),
@"ggslimit": @(params.numberOfResults),
@"exintro": @YES,
@"exlimit": @(params.numberOfResults),
@"explaintext": @"",
@"exchars": @(WMFNumberOfExtractCharacters),
@"format": @"json"
};
}
Expand Down

0 comments on commit e1e9e9d

Please sign in to comment.