mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-01-05 04:26:39 +01:00
Compare commits
6 Commits
630f4e4281
...
8bbe395de2
Author | SHA1 | Date | |
---|---|---|---|
|
8bbe395de2 | ||
|
e690896ed3 | ||
|
31825784ab | ||
|
f4f1c19ffb | ||
|
f9839ea5cb | ||
|
8813dd68f5 |
3
Pipfile
3
Pipfile
@ -21,9 +21,10 @@ requests = "*"
|
||||
six = "*"
|
||||
"urllib3" = "*"
|
||||
webencodings = "*"
|
||||
Django = "~=3.2"
|
||||
Django = "~=4.2"
|
||||
django-html_sanitizer = "*"
|
||||
inscriptis = "*"
|
||||
lxml = "*"
|
||||
|
||||
[dev-packages]
|
||||
python-lsp-server = {extras = ["pyflakes", "rope", "yapf"], version = "*"}
|
||||
|
@ -12,6 +12,14 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
|
||||
|
||||
import os
|
||||
|
||||
# Work around issue in sanitizer
|
||||
import django
|
||||
try:
|
||||
from django.utils.encoding import smart_text
|
||||
except:
|
||||
from django.utils.encoding import smart_str
|
||||
django.utils.encoding.smart_text = smart_str
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
{% load sanitizer %}
|
||||
|
||||
{% block title %}
|
||||
Brutaldon ({{ own_acct.username }}) - Notifications timelime
|
||||
Brutaldon ({{ own_acct.username }}) - Notifications timeline
|
||||
{% endblock %}
|
||||
|
||||
{% comment %}
|
||||
|
@ -4,7 +4,7 @@
|
||||
{% load cache %}
|
||||
|
||||
{% block title %}
|
||||
Brutaldon ({{ own_acct.username }}) - {{ timeline_name }} timelime
|
||||
Brutaldon ({{ own_acct.username }}) - {{ timeline_name }} timeline
|
||||
{% endblock %}
|
||||
|
||||
{% block page_scripts %}
|
||||
|
@ -4,7 +4,7 @@
|
||||
{% load taglinks %}
|
||||
|
||||
{% block title %}
|
||||
Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime
|
||||
Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timeline
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -583,6 +583,7 @@ def old_login(request):
|
||||
account.username = request.session["active_username"]
|
||||
request.session["timezone"] = account.preferences.timezone
|
||||
|
||||
account.save()
|
||||
accounts_dict = request.session.get("accounts_dict")
|
||||
if not accounts_dict:
|
||||
accounts_dict = {}
|
||||
@ -591,7 +592,6 @@ def old_login(request):
|
||||
"user": user,
|
||||
}
|
||||
request.session["accounts_dict"] = accounts_dict
|
||||
account.save()
|
||||
|
||||
return redirect(home)
|
||||
except IntegrityError:
|
||||
|
Loading…
Reference in New Issue
Block a user