master
Aevann1 2021-10-06 07:40:27 +02:00
parent 559d5b8e3d
commit c89b314c05
2 changed files with 2 additions and 3 deletions

View File

@ -186,7 +186,7 @@ def sanitize(sanitized, noimages=False):
except:
pass
if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '<span class="spoiler">').replace(end, '</span>')
if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '<span class="spoiler">').replace(end, '</span>')
for i in re.finditer("[^a]>\s*(:!?\w+:\s*)+<\/", sanitized):
old = i.group(0)

View File

@ -16,7 +16,7 @@
<div class="col p-0 w-100">
<ul class="nav settings-nav" style="padding:0 30px;">
<li class="nav-item">
<a class="nav-link py-3{% if not '=' in request.full_path %} active{% endif %}" href="/notifications">
<a class="nav-link py-3{% if not '=true' in request.full_path %} active{% endif %}" href="/notifications">
All
</a>
</li>
@ -46,7 +46,6 @@
<h1 class="h3 d-md-none">Inbox</h1>
{% with comments=notifications %}
{% include "comments.html" %}
{% endwith %}