Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: psychs/limechat
base: master
...
head fork: yappo/limechat
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Jan 14, 2011
@yappo yappo supported ficia.com 47a1a57
Showing with 16 additions and 1 deletion.
  1. +16 −1 Classes/Views/Log/ImageURLParser.m
View
17 Classes/Views/Log/ImageURLParser.m
@@ -175,7 +175,22 @@ + (NSString*)imageURLForURL:(NSString*)url
return [NSString stringWithFormat:@"http://tn-skr%qi.smilevideo.jp/smile?i=%qi", (vidNum%4 + 1), vidNum];
}
}
-
+ else if ([host hasSuffix:@".ficia.com"]) {
+ NSString* fragment = u.fragment;
+ NSString* user = [host substringToIndex:host.length - 10];
+ if (path.length > 60) {
+ if ([path hasPrefix:@"/pl/album-photo/"]) {
+ NSString* s = [path substringFromIndex:53];
+ return [NSString stringWithFormat:@"http://%@.pst.ficia.com/p/%@.jpg", user, s];
+ }
+ }
+ else if (fragment.length > 60) {
+ if ([fragment hasPrefix:@"album-photo/"]) {
+ NSString* s = [fragment substringFromIndex:49];
+ return [NSString stringWithFormat:@"http://%@.pst.ficia.com/p/%@.jpg", user, s];
+ }
+ }
+ }
return nil;
}

No commit comments for this range

Something went wrong with that request. Please try again.