Skip to content

Commit

Permalink
Supported inline images on plixi.com
Browse files Browse the repository at this point in the history
  • Loading branch information
psychs committed Oct 7, 2010
1 parent 4faa13e commit c55d062
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Views/Log/ImageURLParser.m
Expand Up @@ -34,6 +34,11 @@ + (NSString*)imageURLForURL:(NSString*)url
} }
} }
} }
else if ([host hasSuffix:@"plixi.com"]) {
if (path.length > 1) {
return [NSString stringWithFormat:@"http://api.plixi.com/api/TPAPI.svc/imagefromurl?size=medium&url=%@", [url encodeURIComponent]];
}
}
else if ([host hasSuffix:@"tweetphoto.com"]) { else if ([host hasSuffix:@"tweetphoto.com"]) {
if (path.length > 1) { if (path.length > 1) {
return [NSString stringWithFormat:@"http://TweetPhotoAPI.com/api/TPAPI.svc/imagefromurl?size=medium&url=%@", [url encodeURIComponent]]; return [NSString stringWithFormat:@"http://TweetPhotoAPI.com/api/TPAPI.svc/imagefromurl?size=medium&url=%@", [url encodeURIComponent]];
Expand Down

0 comments on commit c55d062

Please sign in to comment.