mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
#1293 (invalid permalink)
- Checks for an invalid permalink, and tries to make it valid.
This commit is contained in:
parent
89a089c5b1
commit
facc9bdc6a
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