Fixed browser links to selfposts. Added links to the submission page. #21

This commit is contained in:
Michael Lazar
2015-03-04 22:58:36 -08:00
parent 46be3d6833
commit 4e5f564db5
3 changed files with 19 additions and 14 deletions

View File

@@ -180,7 +180,8 @@ class BaseContent(object):
else '[deleted]')
data['permalink'] = clean(sub.permalink)
data['subreddit'] = strip_subreddit_url(sub.permalink)
data['url'] = ('(selfpost)' if is_selfpost(sub.url) else clean(sub.url))
data['url_full'] = clean(sub.url)
data['url'] = ('selfpost' if is_selfpost(sub.url) else clean(sub.url))
return data