diff --git a/README.md b/README.md index 54663f5..6c4de21 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Everything Tetratto needs will be built into the main binary. You can build Tetr cargo build -r --no-default-features --features=redis,sqlite ``` -You can replace `sqlite` in the above command with `postgres`, if you'd like. It's also acceptable to remove the `redis` part if you don't want to use a cache. I wouldn't recomment removing cache, though +You can replace `sqlite` in the above command with `postgres`, if you'd like. Redis (or a Redis fork) is required for features such as chats and (realtime) notifications! You can then take the binary and place it somewhere else (highly recommended; the binary will create a fair number of files!). You can do this to move it to a directory just called "tetratto" in the parent directory: diff --git a/crates/app/src/avif.rs b/crates/app/src/avif.rs index f92ea62..524c1d9 100644 --- a/crates/app/src/avif.rs +++ b/crates/app/src/avif.rs @@ -44,6 +44,7 @@ where | (content_type == "image/jpeg") | (content_type == "image/png") | (content_type == "image/webp") + | (content_type == "image/gif") { Bytes::from_request(req, state) .await diff --git a/crates/app/src/macros.rs b/crates/app/src/macros.rs index e16c061..721314d 100644 --- a/crates/app/src/macros.rs +++ b/crates/app/src/macros.rs @@ -105,6 +105,7 @@ macro_rules! check_user_blocked_or_private { .get_userblock_by_initiator_receiver($other_user.id, ua.id) .await .is_ok() + && !ua.permissions.check(FinePermission::MANAGE_USERS) { let lang = get_lang!($jar, $data.0); let mut context = initial_context(&$data.0.0, lang, &$user).await; diff --git a/crates/app/src/public/html/macros.html b/crates/app/src/public/html/macros.html index 8458e99..95a651b 100644 --- a/crates/app/src/public/html/macros.html +++ b/crates/app/src/public/html/macros.html @@ -51,9 +51,12 @@ class="button {% if selected == 'requests' %}active{% endif %}" title="Requests" > - {{ icon "inbox" }} {% if user.request_count > 0 %} - {{ user.request_count }} - {% endif %} + {{ icon "inbox" }} + {{ user.request_count }} - {% if user.notification_count > 0 %} {{ icon "bell-dot" }} - {{ user.notification_count }} - {% else %} {{ icon "bell" }} {% endif %}