For now? I'm experimenting on an old concept.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: format

+10 -12
+1 -1
README.MD
··· 19 19 `$LUMINAFOLDER/.env`. 20 20 21 21 | NAME | DEFAULT | FOR | 22 - |----------------------------|----------------------|----------------------------------------------------------------------------------------------------------------------------| 22 + | -------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------- | 23 23 | `LUMINA_POSTGRES_PORT` | `5432` | The port to contact the database on. | 24 24 | `LUMINA_POSTGRES_HOST` | `localhost` | The address to contact the database on. | 25 25 | `LUMINA_POSTGRES_USERNAME` | `lumina` | The username to log in to the database with. |
+4 -1
client/src/lumina_client/view/common_view_parts.gleam
··· 26 26 ]), 27 27 ]), 28 28 html.div([attribute.class("flex-none")], [ 29 - html.ul([attribute.class("menu menu-horizontal px-1 font-menuitems")], menuitems), 29 + html.ul( 30 + [attribute.class("menu menu-horizontal px-1 font-menuitems")], 31 + menuitems, 32 + ), 30 33 ]), 31 34 ], 32 35 ),
+4 -9
server/src/database.rs
··· 16 16 let redis_pool: Pool<redis::Client> = { 17 17 info_elog!(ev_log, "Setting up Redis connection to {}...", redis_url); 18 18 let client = redis::Client::open(redis_url.clone()).map_err(LuminaError::Redis)?; 19 - Pool::builder() 20 - .build(client) 21 - .map_err(LuminaError::R2D2Pool) 19 + Pool::builder().build(client).map_err(LuminaError::R2D2Pool) 22 20 }?; 23 21 success_elog!( 24 22 ev_log, ··· 161 159 pub(crate) enum DbConn { 162 160 // The config is also shared, so that for example the logger can set up its own connection, use this sparingly. 163 161 /// The main database is a Postgres database in this variant. 164 - PgsqlConnection( 165 - (Client, postgres::Config), 166 - Pool<redis::Client>, 167 - ), 162 + PgsqlConnection((Client, postgres::Config), Pool<redis::Client>), 168 163 } 169 164 170 165 impl DbConn { ··· 268 263 269 264 // Check for timeline changes and invalidate caches accordingly (PostgreSQL) 270 265 async fn check_timeline_invalidations( 271 - redis_conn: &mut redis::Connection, 272 - client: &Client, 266 + redis_conn: &mut redis::Connection, 267 + client: &Client, 273 268 ) -> Result<(), LuminaError> { 274 269 // Get the last check timestamp 275 270 let last_check: Option<String> = redis_conn.get("timeline_cache_last_check").unwrap_or(None);
+1 -1
server/src/main.rs
··· 286 286 staticroutes::favicon, 287 287 ], 288 288 ) 289 - .mount("/assets", rocket::fs::FileServer::from("./assets")) 289 + .mount("/assets", rocket::fs::FileServer::from("./assets")) 290 290 .manage(appstate) 291 291 .manage(rate_limiter) 292 292 .manage(auth_rate_limiter)