forked from MarseyWorld/MarseyWorld
fdfsdfds
parent
b22b261380
commit
81c2555caf
|
@ -316,7 +316,7 @@ class Comment(Base):
|
||||||
url_noquery = url.split('?')[0]
|
url_noquery = url.split('?')[0]
|
||||||
body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}")
|
body = body.replace(url, f"{url_noquery}?{urlencode(p, True)}")
|
||||||
|
|
||||||
if self.author.sig_html and not (v and v.sigs_disabled): return body + '<hr>' + self.author.sig_html
|
if self.author.sig_html and (self.author_id == 1904 or not (v and v.sigs_disabled)): return body + '<hr>' + self.author.sig_html
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def plainbody(self, v):
|
def plainbody(self, v):
|
||||||
|
|
|
@ -316,7 +316,7 @@ class Submission(Base):
|
||||||
|
|
||||||
if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")
|
if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")
|
||||||
if v and v.nitter: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
|
if v and v.nitter: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")
|
||||||
if self.author.sig_html and not (v and v.sigs_disabled): return body + '<hr>' + self.author.sig_html
|
if self.author.sig_html and (self.author_id == 1904 or not (v and v.sigs_disabled)): return body + '<hr>' + self.author.sig_html
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def plainbody(self, v):
|
def plainbody(self, v):
|
||||||
|
|
Loading…
Reference in New Issue