diff options
Diffstat (limited to 'ftplugin/hackernews.py')
| -rw-r--r-- | ftplugin/hackernews.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py index 4f08a47..f6fd974 100644 --- a/ftplugin/hackernews.py +++ b/ftplugin/hackernews.py @@ -187,7 +187,9 @@ def link(external=False): item['comments_count'])) else: bwrite(item['time_ago']) - if 'url' in item: + if 'url' in item and item['url'].find(item_id) < 0: + bwrite("[%s]" % item['url']) + else: bwrite("[http://news.ycombinator.com/item?id=%s]" % item_id) if 'content' in item: bwrite("") |
