diff --git a/rtv/content.py b/rtv/content.py index 10837f8..7afa275 100644 --- a/rtv/content.py +++ b/rtv/content.py @@ -310,9 +310,8 @@ class SubredditContent(BaseContent): return content @classmethod - def from_redditor(cls, reddit, username, loader, order='new'): - redditor = reddit.get_redditor(username) - submissions = redditor.get_submitted(sort=order) + def from_redditor(cls, reddit, loader, order='new'): + submissions = reddit.user.get_submitted(sort=order) display_name = '/r/me' content = cls(display_name, submissions, loader) try: diff --git a/rtv/subreddit.py b/rtv/subreddit.py index f898824..8f1a7d7 100644 --- a/rtv/subreddit.py +++ b/rtv/subreddit.py @@ -79,9 +79,8 @@ class SubredditPage(BasePage): def redditor_profile(self): if self.reddit.is_logged_in(): try: - redditor = self.reddit.user.name self.content = SubredditContent.from_redditor( - self.reddit, redditor, self.loader) + self.reddit, self.loader) except requests.HTTPError: show_notification(self.stdscr, ['Could not reach subreddit']) else: