fix to morechildren permalink. Removed sr as optional parameter in comment.make_permalink()

This commit is contained in:
Christopher Slowe
2008-08-26 07:56:52 -07:00
parent 8f5599e93d
commit 0fe60eb439

View File

@@ -63,7 +63,7 @@ class Link(Thing, Printable):
#TODO get the subreddit?
@classmethod
def _by_url(cls, url, sr = None):
def _by_url(cls, url, sr):
from subreddit import Default
#force sr to be None for caching purposes
if sr in (False, Default):
@@ -442,7 +442,8 @@ class MoreComments(object):
if parent:
self.parent_id = parent._id
self.parent_name = parent._fullname
self.parent_permalink = parent.make_permalink(link)
self.parent_permalink = parent.make_permalink(link,
link.subreddit_slow)
self.link_name = link._fullname
self.link_id = link._id
self.depth = depth