fix: respect private profile and check blocks on profile

This commit is contained in:
trisua 2025-09-02 19:06:53 -04:00
parent 2bd23f8214
commit 0b242ac5f0
4 changed files with 50 additions and 3 deletions

View file

@ -247,6 +247,7 @@ video {
user-select: none;
appearance: none;
overflow: hidden;
position: relative;
}
.button:not(nav *, .tab, .dropdown .inner *, .square) {

View file

@ -2,7 +2,7 @@
(text "{% if user -%}")
(meta ("http-equiv" "refresh") ("content" "0; /chats"))
(text "{% else %}")
(meta ("http-equiv" "refresh") ("content" "0; {{ config.service_hosts.tetratto|safe }}"))
(meta ("http-equiv" "refresh") ("content" "0; /login"))
(text "{%- endif %}")
(text "{% endblock %} {% block body %}")
(div

View file

@ -64,6 +64,10 @@
("href" "{{ config.service_hosts.tetratto }}/auth/register")
(text "sign up"))
(text "{%- else -%}")
(a
("class" "button")
("href" "/@{{ user.username }}")
(text "my profile"))
(a
("class" "button")
("href" "{{ config.service_hosts.tetratto }}/settings")