chore: remove features that don't compile

add: posts "circle" column
This commit is contained in:
trisua 2025-06-15 12:19:58 -04:00
parent 0310418837
commit 50704d27a9
42 changed files with 71 additions and 365 deletions

View file

@ -3,12 +3,6 @@ name = "tetratto"
version = "7.0.0"
edition = "2024"
[features]
postgres = ["tetratto-core/postgres"]
sqlite = ["tetratto-core/sqlite"]
redis = ["tetratto-core/redis"]
default = ["sqlite", "redis"]
[dependencies]
pathbufd = "0.1.4"
serde = { version = "1.0.219", features = ["derive"] }
@ -21,9 +15,7 @@ tokio = { version = "1.45.1", features = ["macros", "rt-multi-thread"] }
axum-extra = { version = "0.10.1", features = ["cookie", "multipart"] }
ammonia = "4.1.0"
tetratto-shared = { path = "../shared" }
tetratto-core = { path = "../core", features = [
"redis",
], default-features = false }
tetratto-core = { path = "../core" }
tetratto-l10n = { path = "../l10n" }
image = "0.25.6"

View file

@ -17,7 +17,6 @@ use tetratto_core::{
auth::{DefaultTimelineChoice, User},
permissions::FinePermission,
},
PUBSUB_ENABLED,
};
use tetratto_l10n::LangFile;
use tetratto_shared::hash::salt;
@ -468,7 +467,7 @@ pub(crate) async fn initial_context(
) -> Context {
let mut ctx = Context::new();
ctx.insert("config", &config);
ctx.insert("pubsub", &PUBSUB_ENABLED);
ctx.insert("pubsub", &true);
ctx.insert("user", &user);
ctx.insert("use_user_theme", &true);

View file

@ -144,7 +144,9 @@
(text "{{ macros::timelines_nav_options(selected=selected) }}")
; secondary nav desktop only
(text "{{ macros::timelines_secondary_nav(posts=posts, questions=questions, selected=secondary_selected) }}"))
(text "{% if posts and questions -%}")
(text "{{ macros::timelines_secondary_nav(posts=posts, questions=questions, selected=secondary_selected) }}")
(text "{%- endif %}"))
(text "{%- endmacro %}")
(text "{% macro timelines_nav_options(selected=\"\") -%}")

View file

@ -12,7 +12,9 @@
("class" "card small flex items-center justify-between gap-2")
(div
("class" "flex items-center gap-2")
(text "{{ icon \"list\" }}")
(a
("href" "/api/v1/auth/user/find/{{ stack.owner }}")
(text "{{ components::avatar(username=stack.owner, selector_type=\"id\") }}"))
(span
(text "{{ stack.name }}")))
(text "{% if user and user.id == stack.owner -%}")

View file

@ -28,8 +28,6 @@ use tetratto_core::{
},
DataManager,
};
#[cfg(feature = "redis")]
use tetratto_core::cache::redis::Commands;
use tetratto_shared::{
hash::{self, random_id},
@ -534,7 +532,6 @@ pub async fn has_totp_enabled_request(
}
/// Handle a subscription to the websocket.
#[cfg(feature = "redis")]
pub async fn subscription_handler(
jar: CookieJar,
ws: WebSocketUpgrade,
@ -557,7 +554,6 @@ pub async fn subscription_handler(
}))
}
#[cfg(feature = "redis")]
pub async fn handle_socket(socket: WebSocket, db: DataManager, user_id: String, stream_id: String) {
let (mut sink, mut stream) = socket.split();
let socket_id = tetratto_shared::hash::salt();

View file

@ -1,5 +1,6 @@
pub mod apps;
pub mod auth;
pub mod channels;
pub mod communities;
pub mod notifications;
pub mod reactions;
@ -9,9 +10,6 @@ pub mod stacks;
pub mod uploads;
pub mod util;
#[cfg(feature = "redis")]
pub mod channels;
use axum::{
routing::{any, delete, get, post, put},
Router,

View file

@ -1,4 +1,5 @@
pub mod auth;
pub mod chats;
pub mod communities;
pub mod developer;
pub mod forge;
@ -7,9 +8,6 @@ pub mod mod_panel;
pub mod profile;
pub mod stacks;
#[cfg(feature = "redis")]
pub mod chats;
use axum::{
routing::{get, post},
Router,