# HG changeset patch # User Ludovic Chabant # Date 1391583844 28800 # Node ID dc2b06ba392b11bb2d64cb0ad3d479273a549c97 # Parent 955eb4d5dbd4eb7ced208490211dc8b1cf32ee91 Fixed bugs with getting incoming/outgoing links. diff -r 955eb4d5dbd4 -r dc2b06ba392b wikked/views/read.py --- a/wikked/views/read.py Tue Feb 04 23:03:14 2014 -0800 +++ b/wikked/views/read.py Tue Feb 04 23:04:04 2014 -0800 @@ -154,8 +154,8 @@ page = get_page_or_404(url, check_perms=CHECK_FOR_READ) links = [] for link in page.links: - other = get_page_or_none(link) - if other is not None: + other = get_page_or_none(link, convert_url=False) + if other is not None and is_page_readable(other): links.append({ 'url': other.url, 'title': other.title @@ -177,7 +177,7 @@ page = get_page_or_404(url, check_perms=CHECK_FOR_READ) links = [] for link in page.getIncomingLinks(): - other = get_page_or_none(link) + other = get_page_or_none(link, convert_url=False) if other is not None and is_page_readable(other): links.append({ 'url': link,