mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Add author_slow to Comment as queries.ban needs it.
This commit is contained in:
committed by
Max Goodman
parent
b0d307eaab
commit
ce7776f59d
@@ -793,6 +793,13 @@ class Comment(Thing, Printable):
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user