Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add author_slow to Comment as queries.ban needs it.

  • Loading branch information...
commit ce7776f59dd704e327762becf53ff9d650c61af2 1 parent b0d307e
@spladug spladug authored Max Goodman committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 r2/r2/models/
7 r2/r2/models/
@@ -793,6 +793,13 @@ def subreddit_slow(self):
sr_id = l.sr_id
return Subreddit._byID(sr_id, True, return_dict=False)
+ @property
+ def author_slow(self):
+ """Returns the comment's author."""
+ # The author is often already on the wrapped comment as .author
+ # If available, that should be used instead of calling this
+ return Account._byID(self.author_id, data=True, return_dict=False)
def keep_item(self, wrapped):
return True
Please sign in to comment.
Something went wrong with that request. Please try again.