remotes/1693045480750635534/spooky-22
Aevann1 2022-03-21 23:31:16 +02:00
parent fa98f65d3e
commit ffe1964981
16 changed files with 36 additions and 36 deletions

30
env
View File

@ -1,16 +1,16 @@
export MASTER_KEY="3435tdfsdudebussylmaoxxt43" export MASTER_KEY="blahblahblah"
export DOMAIN="localhost" export DOMAIN="localhost"
export SITE_NAME="Drama" export SITE_NAME="Drama"
export GIPHY_KEY="3435tdfsdudebussylmaoxxt43" export GIPHY_KEY="blahblahblah"
export DISCORD_SERVER_ID="3435tdfsdudebussylmaoxxt43" export DISCORD_SERVER_ID="blahblahblah"
export DISCORD_CLIENT_ID="3435tdfsdudebussylmaoxxt43" export DISCORD_CLIENT_ID="blahblahblah"
export DISCORD_CLIENT_SECRET="3435tdfsdudebussylmaoxxt43" export DISCORD_CLIENT_SECRET="blahblahblah"
export DISCORD_BOT_TOKEN="3435tdfsdudebussylmaoxxt43" export DISCORD_BOT_TOKEN="blahblahblah"
export HCAPTCHA_SECRET="3435tdfsdudebussylmaoxxt43" export HCAPTCHA_SECRET="blahblahblah"
export YOUTUBE_KEY="3435tdfsdudebussylmaoxxt43" export YOUTUBE_KEY="blahblahblah"
export PUSHER_ID="3435tdfsdudebussylmaoxxt43" export PUSHER_ID="blahblahblah"
export PUSHER_KEY="3435tdfsdudebussylmaoxxt43" export PUSHER_KEY="blahblahblah"
export IMGUR_KEY="3435tdfsdudebussylmaoxxt43" export IMGUR_KEY="45ec598cad8462c"
export SPAM_SIMILARITY_THRESHOLD="0.5" export SPAM_SIMILARITY_THRESHOLD="0.5"
export SPAM_URL_SIMILARITY_THRESHOLD="0.1" export SPAM_URL_SIMILARITY_THRESHOLD="0.1"
export SPAM_SIMILAR_COUNT_THRESHOLD="10" export SPAM_SIMILAR_COUNT_THRESHOLD="10"
@ -19,7 +19,7 @@ export COMMENT_SPAM_COUNT_THRESHOLD="10"
export READ_ONLY="0" export READ_ONLY="0"
export BOT_DISABLE="0" export BOT_DISABLE="0"
export DEFAULT_TIME_FILTER="all" export DEFAULT_TIME_FILTER="all"
export GUMROAD_TOKEN="3435tdfsdudebussylmaoxxt43" export GUMROAD_TOKEN="blahblahblah"
export GUMROAD_LINK="https://marsey1.gumroad.com/l/tfcvri" export GUMROAD_LINK="https://marsey1.gumroad.com/l/tfcvri"
export GUMROAD_ID="tfcvri" export GUMROAD_ID="tfcvri"
export CARD_VIEW="0" export CARD_VIEW="0"
@ -28,8 +28,8 @@ export DUES="10"
export DEFAULT_THEME="midnight" export DEFAULT_THEME="midnight"
export DEFAULT_COLOR="ff66ac" export DEFAULT_COLOR="ff66ac"
export MAIL_USERNAME="blahblahblah@gmail.com" export MAIL_USERNAME="blahblahblah@gmail.com"
export MAIL_PASSWORD="3435tdfsdudebussylmaoxxt43" export MAIL_PASSWORD="blahblahblah"
export DESCRIPTION="rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!" export DESCRIPTION="rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!"
export CF_KEY="3435tdfsdudebussylmaoxxt43" export CF_KEY="blahblahblah"
export CF_ZONE="3435tdfsdudebussylmaoxxt43" export CF_ZONE="blahblahblah"
export DEBIAN_FRONTEND="noninteractive" export DEBIAN_FRONTEND="noninteractive"

View File

@ -176,7 +176,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
for tag in soup.find_all("img"): for tag in soup.find_all("img"):
if tag.get("src") and not tag["src"].startswith('/pp/'): if tag.get("src") and not tag["src"].startswith('/pp/'):
tag["class"] = "in-comment-image" tag["class"] = "img"
tag["loading"] = "lazy" tag["loading"] = "lazy"
tag["data-src"] = tag["src"] tag["data-src"] = tag["src"]
tag["src"] = "/static/assets/images/loading.webp" tag["src"] = "/static/assets/images/loading.webp"
@ -311,7 +311,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
sanitized = unlinked_regex.sub(r'\1<a href="\2" rel="nofollow noopener noreferrer" target="_blank">\2</a>', sanitized) sanitized = unlinked_regex.sub(r'\1<a href="\2" rel="nofollow noopener noreferrer" target="_blank">\2</a>', sanitized)
if not noimages: if not noimages:
sanitized = video_regex.sub(r'<p><video controls preload="none" class="embedvid"><source src="\1" type="video/mp4"></video>', sanitized) sanitized = video_regex.sub(r'<p><video controls preload="none" class="vid"><source src="\1"></video>', sanitized)
if comment: if comment:
for marsey in g.db.query(Marsey).filter(Marsey.name.in_(marseys_used)).all(): for marsey in g.db.query(Marsey).filter(Marsey.name.in_(marseys_used)).all():

View File

@ -307,7 +307,7 @@ def submit_contact(v):
name = f'/images/{time.time()}'.replace('.','')[:-5] + '.webp' name = f'/images/{time.time()}'.replace('.','')[:-5] + '.webp'
file.save(name) file.save(name)
url = process_image(name) url = process_image(name)
body_html += f'<img data-bs-target="#expandImageModal" data-bs-toggle="modal" onclick="expandDesktopImage(this.src)" class="in-comment-image" src="{url}" loading="lazy">' body_html += f'<img data-bs-target="#expandImageModal" data-bs-toggle="modal" onclick="expandDesktopImage(this.src)" class="img" src="{url}" loading="lazy">'
elif file.content_type.startswith('video/'): elif file.content_type.startswith('video/'):
file.save("video.mp4") file.save("video.mp4")
with open("video.mp4", 'rb') as f: with open("video.mp4", 'rb') as f:

View File

@ -15,7 +15,7 @@
{% if v %} {% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30">
{% if v.agendaposter %} {% if v.agendaposter %}
<style> <style>
html { html {
@ -39,7 +39,7 @@
{% endif %} {% endif %}
{% else %} {% else %}
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
{% endif %} {% endif %}
</head> </head>

View File

@ -7,7 +7,7 @@
<script src="/static/assets/js/bootstrap.js?v=245"></script> <script src="/static/assets/js/bootstrap.js?v=245"></script>
{% if v %} {% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185">
<link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30">
{% if v.agendaposter %} {% if v.agendaposter %}
<style> <style>
@ -32,7 +32,7 @@
{% endif %} {% endif %}
{% else %} {% else %}
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185">
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
{% endif %} {% endif %}

View File

@ -64,7 +64,7 @@ You can use Markdown formatting:
<tr> <tr>
<td>Video Files</td> <td>Video Files</td>
<td>https://files.catbox.moe/v4om92.mp4</td> <td>https://files.catbox.moe/v4om92.mp4</td>
<td><video controls preload="none" class="embedvid"><source referrerpolicy="no-referrer" src="https://files.catbox.moe/v4om92.mp4" type="video/mp4"></video></td> <td><video controls preload="none" class="vid"><source referrerpolicy="no-referrer" src="https://files.catbox.moe/v4om92.mp4" type="video/mp4"></video></td>
</tr> </tr>
<tr> <tr>
<td>Emojis</td> <td>Emojis</td>

View File

@ -6,7 +6,7 @@
{% block content %} {% block content %}
{% if v %} {% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30">
{% if v.agendaposter %} {% if v.agendaposter %}
<style> <style>
html { html {
@ -30,7 +30,7 @@
{% endif %} {% endif %}
{% else %} {% else %}
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
{% endif %} {% endif %}
<div class="row justify-content-around"> <div class="row justify-content-around">

View File

@ -18,7 +18,7 @@
{% endblock %} {% endblock %}
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185">
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
</head> </head>

View File

@ -14,7 +14,7 @@
<title>2-Step Login - {{SITE_NAME}}</title> <title>2-Step Login - {{SITE_NAME}}</title>
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
</head> </head>

View File

@ -34,7 +34,7 @@
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30">
{% if v.agendaposter %} {% if v.agendaposter %}
<style> <style>
html { html {

View File

@ -39,10 +39,10 @@
{% if v %} {% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30">
{% else %} {% else %}
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
{% endif %} {% endif %}
</head> </head>

View File

@ -31,7 +31,7 @@
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title> <title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
</head> </head>

View File

@ -32,7 +32,7 @@
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title> <title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
</head> </head>

View File

@ -717,7 +717,7 @@
{% elif p.is_video %} {% elif p.is_video %}
<div class="row no-gutters"> <div class="row no-gutters">
<div class="col"> <div class="col">
<video controls preload="none" class="embedvid"> <video controls preload="none" class="vid">
<source src="{{p.realurl(v)}}" type="video/mp4"> <source src="{{p.realurl(v)}}" type="video/mp4">
</video> </video>
</div> </div>

View File

@ -357,7 +357,7 @@
</div> </div>
{% elif p.is_video %} {% elif p.is_video %}
<div id="video-{{p.id}}" style="text-align: center" class="{% if p.over_18 or not ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}d-none{% endif %} mt-4"> <div id="video-{{p.id}}" style="text-align: center" class="{% if p.over_18 or not ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}d-none{% endif %} mt-4">
<video id="video2-{{p.id}}" controls preload="none" class="embedvid"> <video id="video2-{{p.id}}" controls preload="none" class="vid">
<source src="{{p.realurl(v)}}" type="video/mp4"> <source src="{{p.realurl(v)}}" type="video/mp4">
</video> </video>
</div> </div>

View File

@ -26,7 +26,7 @@
{% block stylesheets %} {% block stylesheets %}
{% if v %} {% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?v=30">
{% if v.agendaposter %} {% if v.agendaposter %}
<style> <style>
html { html {
@ -50,7 +50,7 @@
{% endif %} {% endif %}
{% else %} {% else %}
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style> <style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?v=183"> <link rel="stylesheet" href="/static/assets/css/main.css?v=185">
<link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30"> <link rel="stylesheet" href="/static/assets/css/{{config('DEFAULT_THEME')}}.css?v=30">
{% endif %} {% endif %}
{% endblock %} {% endblock %}