Skip to content

Commit

Permalink
Updated flickr photo domain
Browse files Browse the repository at this point in the history
  • Loading branch information
devedup committed Apr 24, 2020
1 parent 683495d commit 1c7fed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 2 additions & 6 deletions Classes/FlickrKit/FlickrKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -436,17 +436,13 @@ - (NSURL *) photoURLForSize:(FKPhotoSize)size photoID:(NSString *)photoID server
// https://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}_[mstb].jpg
// https://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}.jpg

static NSString *photoSource = @"https://static.flickr.com/";
static NSString *photoSource = @"https://live.staticflickr.com/";

NSMutableString *URLString = [NSMutableString stringWithString:@"https://"];
if (farm.length) {
[URLString appendFormat:@"farm%@.", farm];
}
NSMutableString *URLString = [NSMutableString stringWithString:photoSource];

NSAssert([server length], @"Must have server attribute");
NSAssert([photoID length], @"Must have id attribute");
NSAssert([secret length], @"Must have secret attribute");
[URLString appendString:[photoSource substringFromIndex:8]];
[URLString appendFormat:@"%@/%@_%@", server, photoID, secret];

NSString *sizeKey = FKIdentifierForSize(size);
Expand Down
4 changes: 0 additions & 4 deletions FlickrKit.xcodeproj/xcshareddata/xcschemes/FlickrKit.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -61,8 +59,6 @@
ReferencedContainer = "container:FlickrKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down

0 comments on commit 1c7fed5

Please sign in to comment.