mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
#1293 (invalid permalink)
- Checks for an invalid permalink, and tries to make it valid.
This commit is contained in:
parent
888797da53
commit
c68cd51fa7
1 changed files with 8 additions and 3 deletions
|
@ -1457,9 +1457,14 @@
|
|||
|
||||
- (IBAction)showOriginalSubview:(id)sender {
|
||||
[appDelegate hidePopover];
|
||||
|
||||
NSURL *url = [NSURL URLWithString:[appDelegate.activeStory
|
||||
objectForKey:@"story_permalink"]];
|
||||
|
||||
NSString *permalink = [appDelegate.activeStory objectForKey:@"story_permalink"];
|
||||
NSURL *url = [NSURL URLWithString:permalink];
|
||||
|
||||
if (url == nil) {
|
||||
url = [NSURL URLWithDataRepresentation:[permalink dataUsingEncoding:NSUTF8StringEncoding] relativeToURL:nil];
|
||||
}
|
||||
|
||||
[appDelegate showOriginalStory:url];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue