diff --git a/rtv/submission_page.py b/rtv/submission_page.py index cc14f2f..2090f70 100644 --- a/rtv/submission_page.py +++ b/rtv/submission_page.py @@ -25,10 +25,12 @@ class SubmissionPage(Page): self.controller = SubmissionController(self, keymap=config.keymap) if url: - self.content = SubmissionContent.from_url(reddit, url, term.loader, + self.content = SubmissionContent.from_url( + reddit, url, term.loader, max_comment_cols=config['max_comment_cols']) else: - self.content = SubmissionContent(submission, term.loader, + self.content = SubmissionContent( + submission, term.loader, max_comment_cols=config['max_comment_cols']) # Start at the submission post, which is indexed as -1 self.nav = Navigator(self.content.get, page_index=-1) diff --git a/rtv/subreddit_page.py b/rtv/subreddit_page.py index e112661..2684bed 100644 --- a/rtv/subreddit_page.py +++ b/rtv/subreddit_page.py @@ -140,7 +140,7 @@ class SubredditPage(Page): # Check that the subreddit can be submitted to name = self.content.name - if '+' in name or name in ('/r/all', '/r/front', '/r/me','/u/saved'): + if '+' in name or name in ('/r/all', '/r/front', '/r/me', '/u/saved'): self.term.show_notification("Can't post to {0}".format(name)) return @@ -272,4 +272,4 @@ class SubredditPage(Page): self.term.add_line(win, text, attr=Color.YELLOW) if data['flair']: text = ' {flair}'.format(**data) - self.term.add_line(win, text, attr=Color.RED) + self.term.add_line(win, text, attr=Color.RED) \ No newline at end of file