Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add fxc.am support to inline images #135

Open
wants to merge 1 commit into from

1 participant

shunirr
shunirr

This is a patch to support fxc.am such as http://fxc.am/p/KW9JzFtW .

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

    support thumbnail "fxc.am"

    shunirr authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 Classes/Views/Log/ImageURLParser.m
6 Classes/Views/Log/ImageURLParser.m
View
@@ -236,6 +236,12 @@ + (NSString*)serviceImageURLForURL:(NSString*)url
return [NSString stringWithFormat:@"http://img.youtube.com/vi/%@/default.jpg", vid];
}
}
+ else if ([host hasSuffix:@"fxc.am"]) {
+ if (path.length > 3) {
+ NSString* shortId = [path substringFromIndex:3];
+ return [NSString stringWithFormat:@"http://fxc.am/p/%@/src/keep240", shortId];
+ }
+ }
return nil;
}
Something went wrong with that request. Please try again.