remotes/1693045480750635534/spooky-22
Aevann1 2022-01-13 04:35:00 +02:00
parent adf007f726
commit 999c24de4d
4 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ r=redis.Redis(host=environ.get("REDIS_URL", "redis://localhost"), decode_respons
limiter = Limiter(
app,
key_func=get_ipaddr,
default_limits=["3/second;30/minute;200/hour;500/day"],
default_limits=["3/second;30/minute;200/hour;1000/day"],
headers_enabled=True,
strategy="fixed-window"
)

View File

@ -22,7 +22,7 @@ site = environ.get("DOMAIN").strip()
site_name = environ.get("SITE_NAME").strip()
defaulttheme = environ.get("DEFAULT_THEME", "midnight").strip()
defaultcolor = environ.get("DEFAULT_COLOR", "fff").strip()
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "all").strip()
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "day").strip()
cardview = bool(int(environ.get("CARD_VIEW", 1)))
class User(Base):

View File

@ -3,7 +3,7 @@ from files.helpers.get import *
from files.__main__ import app, cache
from files.classes.submission import Submission
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "all").strip()
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "day").strip()
SITE_NAME = environ.get("SITE_NAME", "").strip()
@app.get("/post/")

View File

@ -508,7 +508,7 @@
<input autocomplete="off" id="file-upload-reply-{{c.fullname}}" type="file" name="file" accept="image/*, video/*" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} onchange="document.getElementById('filename-show-reply-{{c.fullname}}').innerHTML='image/video';" hidden>
</label>
</div>
<a id="save-reply-to-{{c.fullname}}" class="btn btn-primary text-white ml-2 fl-r commentmob" onclick="post_comment('{{c.fullname}}', '{{c.post.id}}');" role="button">Comment</a>
<a id="save-reply-to-{{c.fullname}}" class="btn btn-primary ml-2 fl-r commentmob" onclick="post_comment('{{c.fullname}}', '{{c.post.id}}');" role="button">Comment</a>
<a role="button" onclick="document.getElementById('reply-to-{{c.id}}').classList.add('d-none')" class="btn btn-link text-muted ml-auto cancel-form fl-r commentmob">Cancel</a>
</form>
<div id="reply-edit-{{c.id}}" class="mb-3 mt-5"></div>
@ -533,7 +533,7 @@
</div>
<a role="button" onclick="document.getElementById('reply-message-{{c.id}}').classList.add('d-none')" class="btn btn-link text-muted ml-auto cancel-form">Cancel</a>
<a id="save-reply-to-{{c.id}}" class="btn btn-primary text-white ml-2" onclick="post_reply('{{c.id}}');" role="button">Reply</a>
<a id="save-reply-to-{{c.id}}" class="btn btn-primary ml-2" onclick="post_reply('{{c.id}}');" role="button">Reply</a>
</form>
<div id="message-reply-{{c.id}}" class="preview-edit mt-2"></div>
</div>