forked from rDrama/rDrama
fdsfsd
parent
38159c783b
commit
0a578d2b17
|
@ -36,6 +36,7 @@ AJ_REPLACEMENTS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
SLURS = {
|
SLURS = {
|
||||||
|
"white": "mayo",
|
||||||
"retarded": "r-slurred",
|
"retarded": "r-slurred",
|
||||||
"retard": "r-slur",
|
"retard": "r-slur",
|
||||||
"tard": "r-slur",
|
"tard": "r-slur",
|
||||||
|
|
|
@ -284,10 +284,7 @@ def sign_up_post(v):
|
||||||
if existing_account and existing_account.reserved:
|
if existing_account and existing_account.reserved:
|
||||||
return redirect(existing_account.url)
|
return redirect(existing_account.url)
|
||||||
|
|
||||||
if existing_account or (email and g.db.query(
|
if existing_account: return new_signup("An account with that username already exists.")
|
||||||
User).filter(User.email.ilike(email)).first()):
|
|
||||||
return new_signup(
|
|
||||||
"An account with that username or email already exists.")
|
|
||||||
|
|
||||||
if app.config.get("HCAPTCHA_SITEKEY"):
|
if app.config.get("HCAPTCHA_SITEKEY"):
|
||||||
token = request.values.get("h-captcha-response")
|
token = request.values.get("h-captcha-response")
|
||||||
|
|
|
@ -316,10 +316,6 @@
|
||||||
<ul class="list-group post-actions">
|
<ul class="list-group post-actions">
|
||||||
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#reportPostModal" onclick="report_postModal('{{p.id}}')"><i class="far fa-flag text-center text-muted mr-3"></i>Report</button>
|
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#reportPostModal" onclick="report_postModal('{{p.id}}')"><i class="far fa-flag text-center text-muted mr-3"></i>Report</button>
|
||||||
|
|
||||||
{% if v and (v.id==p.author_id or v.admin_level > 1 and v.admin_level > 2) %}
|
|
||||||
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" data-bs-dismiss="modal" onclick="togglePostEdit('{{p.id}}')"><i class="far fa-edit text-center text-muted mr-3"></i>Edit</button>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if v and v.id==p.author_id %}
|
{% if v and v.id==p.author_id %}
|
||||||
{% if p.private %}
|
{% if p.private %}
|
||||||
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" href="javascript:void(0)" onclick="post_toast('/publish/{{p.id}}')" data-bs-dismiss="modal"><i class="fas fa-globe text-center text-muted mr-3"></i>Publish</button>
|
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" href="javascript:void(0)" onclick="post_toast('/publish/{{p.id}}')" data-bs-dismiss="modal"><i class="fas fa-globe text-center text-muted mr-3"></i>Publish</button>
|
||||||
|
@ -337,6 +333,10 @@
|
||||||
|
|
||||||
<a class="btn-block" href="/votes?link={{p.fullname}}"><button class="nobackground btn btn-link btn-block btn-lg text-left text-muted"><i class="fas fa-arrows-v text-center text-muted mr-3"></i>Votes</button></a>
|
<a class="btn-block" href="/votes?link={{p.fullname}}"><button class="nobackground btn btn-link btn-block btn-lg text-left text-muted"><i class="fas fa-arrows-v text-center text-muted mr-3"></i>Votes</button></a>
|
||||||
|
|
||||||
|
{% if v and (v.id==p.author_id or v.admin_level > 1 and v.admin_level > 2) %}
|
||||||
|
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" data-bs-dismiss="modal" onclick="togglePostEdit('{{p.id}}')"><i class="far fa-edit text-center text-muted mr-3"></i>Edit</button>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift text-center text-muted mr-3"></i>Give Award</button>
|
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" data-bs-toggle="modal" data-bs-dismiss="modal" data-bs-target="#awardModal" onclick="awardModal('/post/{{p.id}}/awards')"><i class="fas fa-gift text-center text-muted mr-3"></i>Give Award</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue