fddfs
parent
7ae4856148
commit
f388d62c00
|
@ -143,6 +143,8 @@ if SITE == 'rdrama.net':
|
||||||
LLM_ID = 253
|
LLM_ID = 253
|
||||||
DAD_ID = 2513
|
DAD_ID = 2513
|
||||||
MOM_ID = 4588
|
MOM_ID = 4588
|
||||||
|
BUG_THREAD = 18459
|
||||||
|
EMOJI_THREAD = 22479
|
||||||
elif SITE == "pcmemes.net":
|
elif SITE == "pcmemes.net":
|
||||||
BASEDBOT_ID = 800
|
BASEDBOT_ID = 800
|
||||||
NOTIFICATIONS_ID = 1046
|
NOTIFICATIONS_ID = 1046
|
||||||
|
@ -159,6 +161,8 @@ elif SITE == "pcmemes.net":
|
||||||
LLM_ID = 0
|
LLM_ID = 0
|
||||||
DAD_ID = 0
|
DAD_ID = 0
|
||||||
MOM_ID = 0
|
MOM_ID = 0
|
||||||
|
BUG_THREAD = 4103
|
||||||
|
EMOJI_THREAD = 0
|
||||||
else:
|
else:
|
||||||
BASEDBOT_ID = 0
|
BASEDBOT_ID = 0
|
||||||
NOTIFICATIONS_ID = 1
|
NOTIFICATIONS_ID = 1
|
||||||
|
@ -175,6 +179,8 @@ else:
|
||||||
LLM_ID = 0
|
LLM_ID = 0
|
||||||
DAD_ID = 0
|
DAD_ID = 0
|
||||||
MOM_ID = 0
|
MOM_ID = 0
|
||||||
|
BUG_THREAD = 0
|
||||||
|
EMOJI_THREAD = 0
|
||||||
|
|
||||||
PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
|
PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
|
||||||
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()
|
||||||
|
@ -757,6 +763,3 @@ TROLLTITLES = [
|
||||||
"Pretty sure this is @{username}'s Reddit account",
|
"Pretty sure this is @{username}'s Reddit account",
|
||||||
"Hey jannies can you please ban @{username}",
|
"Hey jannies can you please ban @{username}",
|
||||||
]
|
]
|
||||||
|
|
||||||
BUG_THREAD = 18459
|
|
||||||
EMOJI_THREAD = 22479
|
|
||||||
|
|
|
@ -331,8 +331,7 @@ def unsubscribe(v, post_id):
|
||||||
@app.get("/report_bugs")
|
@app.get("/report_bugs")
|
||||||
@auth_required
|
@auth_required
|
||||||
def reportbugs(v):
|
def reportbugs(v):
|
||||||
if request.host == 'rdrama.net': return redirect('https://rdrama.net/post/18459')
|
return redirect(f'https://rdrama.net/post/{BUG_THREAD}')
|
||||||
return render_template("reportbugs.html", v=v)
|
|
||||||
|
|
||||||
@app.post("/@<username>/message")
|
@app.post("/@<username>/message")
|
||||||
@limiter.limit("1/second")
|
@limiter.limit("1/second")
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
{% extends "default.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
{% include "emoji_modal.html" %}
|
|
||||||
<h3 class="mt-4 mx-2">Report bugs or give suggestions</h3>
|
|
||||||
<form class="mx-2 profile-toggleable-mobile" id='message-mobile' action="/@Aevann/message" method="post">
|
|
||||||
<pre></pre>
|
|
||||||
<textarea id="input-message-mobile" form="message-mobile" name="message" rows="9" maxlength="1000" class="form-control" required></textarea>
|
|
||||||
<pre></pre>
|
|
||||||
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-bold" aria-hidden="true" onclick="makeBold('input-message-mobile')" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Bold"></pre>
|
|
||||||
|
|
||||||
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-italic" aria-hidden="true" onclick="makeItalics('input-message-mobile')" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Italicize"></pre>
|
|
||||||
|
|
||||||
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-quote-right" aria-hidden="true" onclick="makeQuote('input-message-mobile')" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Quote"></pre>
|
|
||||||
|
|
||||||
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('input-message-mobile')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Add Emoji"></pre>
|
|
||||||
|
|
||||||
<input type="submit" value="Submit" class="btn btn-primary mt-3">
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
Loading…
Reference in New Issue