Comments: always set subreddit_path

This commit is contained in:
Chad Birch
2013-10-10 13:17:38 -06:00
parent 83961185fb
commit 0d9d2c111a

View File

@@ -1071,13 +1071,13 @@ class Comment(Thing, Printable):
link_author = DeletedUser()
item.link_author = WrappedUser(link_author)
item.subreddit_path = item.subreddit.path
if cname:
item.subreddit_path = ("http://" +
get_domain(cname=(site == item.subreddit),
subreddit=False))
if site != item.subreddit:
item.subreddit_path += item.subreddit.path
item.subreddit_path = item.subreddit.path
if cname:
item.subreddit_path = ("http://" +
get_domain(cname=(site == item.subreddit),
subreddit=False))
if site != item.subreddit:
item.subreddit_path += item.subreddit.path
item.full_comment_path = item.link.make_permalink(item.subreddit)
item.full_comment_count = item.link.num_comments