forked from rDrama/rDrama
add backend logic
parent
20819aaef3
commit
7b6cc5ee6a
|
@ -703,7 +703,7 @@ def submit_post(v, hole=None):
|
||||||
generate_thumb = (not p.thumburl and p.url and p.domain != SITE)
|
generate_thumb = (not p.thumburl and p.url and p.domain != SITE)
|
||||||
gevent.spawn(postprocess_post, p.url, p.body, p.body_html, p.id, generate_thumb, False)
|
gevent.spawn(postprocess_post, p.url, p.body, p.body_html, p.id, generate_thumb, False)
|
||||||
|
|
||||||
if flag_effortpost:
|
if flag_effortpost and not (SITE_NAME == 'WPD' and v.truescore < 500):
|
||||||
body = f"@{v.username} has requested that [{p.title}](/post/{p.id}) be marked as an effortpost!"
|
body = f"@{v.username} has requested that [{p.title}](/post/{p.id}) be marked as an effortpost!"
|
||||||
alert_admins(body)
|
alert_admins(body)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue