mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
fix to morechildren permalink. Removed sr as optional parameter in comment.make_permalink()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user