add !YOU! to post bodies and to comments
parent
f4fcc4bd09
commit
1c12cbe21d
|
@ -294,6 +294,9 @@ class Comment(Base):
|
||||||
if not self.ghost and self.author.show_sig(v):
|
if not self.ghost and self.author.show_sig(v):
|
||||||
body += f"<hr>{self.author.sig_html}"
|
body += f"<hr>{self.author.sig_html}"
|
||||||
|
|
||||||
|
if v:
|
||||||
|
body = body.replace("!YOU!", v.username)
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
|
@ -309,6 +312,9 @@ class Comment(Base):
|
||||||
|
|
||||||
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:')
|
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:')
|
||||||
|
|
||||||
|
if v:
|
||||||
|
body = body.replace("!YOU!", v.username)
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
|
|
|
@ -324,6 +324,9 @@ class Submission(Base):
|
||||||
if not listing and not self.ghost and self.author.show_sig(v):
|
if not listing and not self.ghost and self.author.show_sig(v):
|
||||||
body += f"<hr>{self.author.sig_html}"
|
body += f"<hr>{self.author.sig_html}"
|
||||||
|
|
||||||
|
if v:
|
||||||
|
body = body.replace("!YOU!", v.username)
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
|
@ -337,6 +340,10 @@ class Submission(Base):
|
||||||
|
|
||||||
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:')
|
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:')
|
||||||
body = normalize_urls_runtime(body, v)
|
body = normalize_urls_runtime(body, v)
|
||||||
|
|
||||||
|
if v:
|
||||||
|
body = body.replace("!YOU!", v.username)
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
|
|
Loading…
Reference in New Issue