Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add instagram.com support to inline images #134

Merged
merged 1 commit into from

2 participants

@shunirr

This is a patch to support instagram.com such as http://instagram.com/p/R1ooeQjqsX .

@psychs psychs merged commit c1b789b into psychs:master
@psychs
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 25, 2012
  1. @shunirr
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Classes/Views/Log/ImageURLParser.m
View
2  Classes/Views/Log/ImageURLParser.m
@@ -87,7 +87,7 @@ + (NSString*)serviceImageURLForURL:(NSString*)url
}
}
}
- else if ([host hasSuffix:@"instagr.am"]) {
+ else if ([host hasSuffix:@"instagr.am"] || [host hasSuffix:@"instagram.com"]) {
if (path.length > 3) {
NSString* shortId = [path substringFromIndex:3];
return [NSString stringWithFormat:@"http://instagr.am/p/%@/media/?size=t", shortId];
Something went wrong with that request. Please try again.