Removed its dependency towards albums' editedAt property.
Editing album's metas (name, description, etc) will no longer update
its editedAt property.
Instead it will now ONLY be updated when adding/removing files to/from
it. Just like how it was meant to be, which was to be used to check
whether it's necessary to re-generate their downloadable ZIPs.
Albums public page cache will still be properly invalidated when
adding/removing files to/from it, as well as after editing their metas.
Added views/album-notice.njk to be used to render okay-ish notice when
an album's public page is still being generated.
I was originally thinking of using it for disabled albums as well, but
I refrained from it to reduce the possibility of disabled album IDs from
being easily scanned (as it just returns 404 now).
Removed invalidatedAt property from stats cache. Instead their caches
will immediately be nullified as they should (thus frees up memory
slightly as well).
Stats cache for albums will now only be cleared when truly necessary.
As in, adding/removing files to/from albums will no longer clear them.
Updated Nunjucks files to properly use h1, h2, h3 tags in actual
hierarchical orders.
Elements that don't need to use hX tags will now use P instead.
Nothing changes visually, only structurally.
Fixed some elements in Nunjucks using single quotes instead of
double quotes. They'd have worked the same, but consistency.
Added h1 title in FAQ page.
Make text for no JS warning a bit bigger, and improved the phrasing
a little bit.
<h3 class="subtitle is-brighter">What is {{ globals.name }}?</h3>
<article class="message">
<div class="message-body">
This is a fork of <a href="https://github.com/WeebDev/lolisafe" target="_blank" rel="noopener">lolisafe</a>.<br>
@ -28,7 +33,7 @@
</article>
{% if globals.enable_faq_banned_categories -%}
<h2 class='subtitle is-brighter'>Are there any <strong>banned categories</strong>?</h2>
<h3 class="subtitle is-brighter">Are there any <strong>banned categories</strong>?</h3>
<article class="message">
<div class="message-body">
Banned categories are the following, <i>but not limited to</i>:<br>
@ -47,7 +52,7 @@
</article>
{%- endif %}
<h2 class='subtitle is-brighter'>Will you keep my uploads forever?</h2>
<h3 class="subtitle is-brighter">Will you keep my uploads forever?</h3>
<article class="message">
<div class="message-body">
Unless the uploads are included within the banned categories above, or some other bullshit, I will.<br>
@ -60,7 +65,7 @@
</div>
</article>
<h2 class='subtitle is-brighter'>How can I keep track of my uploads?</h2>
<h3 class="subtitle is-brighter">How can I keep track of my uploads?</h3>
<article class="message">
<div class="message-body">
Simply create a user on the site and every uploads will be associated with your account, granting you access to your uploads through our Dashboard.<br>
@ -68,7 +73,7 @@
</div>
</article>
<h2 class='subtitle is-brighter'>What are albums?</h2>
<h3 class="subtitle is-brighter">What are albums?</h3>
<article class="message">
<div class="message-body">
Albums are a simple way of sorting/categorizing uploads together.<br>
@ -78,14 +83,14 @@
</div>
</article>
<h2 class='subtitle is-brighter'>Why should I use this?</h2>
<h3 class="subtitle is-brighter">Why should I use this?</h3>
<article class="message">
<div class="message-body">
I don't know.
</div>
</article>
<h2 class='subtitle is-brighter'>I saw something too illegal for my tastes here, what should I do?</h2>
<h3 class="subtitle is-brighter">I saw something too illegal for my tastes here, what should I do?</h3>
<article class="message">
<div class="message-body">
Send a strongly worded email to <a href="mailto:{{ globals.email }}">{{ globals.email }}</a> and I will try to get back to you within <strong>48 hours</strong>.<br>
@ -94,7 +99,7 @@
</article>
{% if globals.support -%}
<h2 class='subtitle is-brighter'>How can I support {{ globals.name }}?</h2>
<h3 class="subtitle is-brighter">How can I support {{ globals.name }}?</h3>
<h2 class='subtitle is-brighter'>Why is the maximum file size in the No-JS uploader form smaller?</h2>
<h3 class="subtitle is-brighter">Why is the maximum file size in the No-JS uploader form smaller?</h3>
<article class="message">
<div class="message-body">
This site is using Cloudflare, which limits the maximum upload size.<br>
@ -205,7 +210,7 @@
{%- endif %}
{% if chunkSizeInt -%}
<h2 class='subtitle is-brighter'>So your API supports chunked uploads?</h2>
<h3 class="subtitle is-brighter">So your API supports chunked uploads?</h3>
<article class="message">
<div class="message-body">
<strong>Yes.</strong> The homepage uploader was coded to chunk uploads into {{ chunkSizeInt }} MB pieces by default. However, this is configurable through its Config tab.<br>
@ -218,7 +223,7 @@
{%- endif %}
{% if globals.fork_repo -%}
<h2 class='subtitle is-brighter'>I found a bug! -or- I want to request a feature!</h2>
<h3 class="subtitle is-brighter">I found a bug! -or- I want to request a feature!</h3>
<article class="message">
<div class="message-body">
Feel free to create a {{ globals.fork_host }} issue <a href="{{ globals.fork_issues }}" target="_blank" rel="noopener">here</a>.</br>
@ -227,7 +232,7 @@
</article>
{%- endif %}
<h2 class='subtitle is-brighter'>How do I delete my own account <strong>and</strong> all the uploads associated with it?</h2>
<h3 class="subtitle is-brighter">How do I delete my own account <strong>and</strong> all the uploads associated with it?</h3>
<article class="message">
<div class="message-body">
For now, you will also have to contact me through my email above.<br>