Fixing intelligence trainer when training in folder.

This commit is contained in:
Samuel Clay 2014-04-18 15:50:47 -07:00
parent d937caaa52
commit a680e42e43

View file

@ -525,14 +525,7 @@ shouldStartLoadWithRequest:(NSURLRequest *)request
NSURL *url = [request URL];
NSArray *urlComponents = [url pathComponents];
NSString *action = @"";
NSString *feedId;
if (appDelegate.storiesCollection.isSocialView || appDelegate.storiesCollection.isSocialRiverView) {
feedId = [NSString stringWithFormat:@"%@", [appDelegate.activeStory
objectForKey:@"story_feed_id"]];
} else {
feedId = [NSString stringWithFormat:@"%@", [appDelegate.storiesCollection.activeFeed
objectForKey:@"id"]];
}
NSString *feedId = [self feedId];
if ([urlComponents count] > 1) {
action = [NSString stringWithFormat:@"%@", [urlComponents objectAtIndex:1]];