remove Comment.print() and Submission.print() functions
these functions i don't believe exist upstream and i guess were to diagnose an issue with author_ids not being saved properly. anyway not really useful now as if an author_id doesn't exist, some major db corruption has prolly already happened.
This commit is contained in:
parent
7139e510be
commit
5d6641c890
5 changed files with 0 additions and 31 deletions
|
@ -381,22 +381,13 @@ class Submission(Base):
|
|||
|
||||
def plainbody(self, v):
|
||||
if self.club and not (v and (v.paid_dues or v.id == self.author_id)): return f"<p>{CC} ONLY</p>"
|
||||
|
||||
body = self.body
|
||||
|
||||
if not body: return ""
|
||||
|
||||
if v:
|
||||
body = body.replace("old.reddit.com", v.reddit)
|
||||
|
||||
if v.nitter and '/i/' not in body and '/retweets' not in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
|
||||
|
||||
return body
|
||||
|
||||
def print(self):
|
||||
print(f'post: {self.id}, author: {self.author_id}', flush=True)
|
||||
return ''
|
||||
|
||||
@lazy
|
||||
def realtitle(self, v):
|
||||
if self.title_html:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue