Our Personal Data Server from scratch!
0
fork

Configure Feed

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

fix(homepage): favicon should render in title

# I am sorry I forgot this.

Now pds.ls will show beautiful icons when showing Tranquil PDSes.

+6 -5
+1 -1
crates/tranquil-pds/src/lib.rs
··· 662 662 .route("/metrics", get(metrics::metrics_handler)) 663 663 .route("/health", get(api::server::health)) 664 664 .route("/robots.txt", get(api::server::robots_txt)) 665 - .route("/logo", get(api::server::get_logo)) 665 + .route("/favicon.ico", get(api::server::get_logo)) 666 666 .route("/u/{handle}/did.json", get(api::identity::user_did_doc)) 667 667 .route( 668 668 "/webhook/telegram",
+3 -2
frontend/public/homepage.html
··· 3 3 <head> 4 4 <meta charset="UTF-8"> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 + <link rel="icon" href="/favicon.ico" type="image/png"> 6 7 <title>Tranquil PDS</title> 7 8 <style> 8 9 :root { ··· 367 368 368 369 <nav> 369 370 <div class="nav-left"> 370 - <img src="/logo" alt="Logo" class="nav-logo hidden" id="navLogo"> 371 + <img src="/favicon.ico" alt="Logo" class="nav-logo hidden" id="navLogo"> 371 372 <span class="hostname" id="hostname">loading...</span> 372 373 <span class="user-count hidden" id="userCount"></span> 373 374 </div> ··· 556 557 }) 557 558 .catch(() => {}); 558 559 559 - fetch("/logo", { method: "HEAD" }) 560 + fetch("/favicon.ico", { method: "HEAD" }) 560 561 .then((r) => { 561 562 if (r.ok) { 562 563 document.getElementById("navLogo").classList.remove(
+1 -1
frontend/src/components/dashboard/AdminContent.svelte
··· 131 131 logoCid = config.logoCid 132 132 originalLogoCid = config.logoCid 133 133 if (config.logoCid) { 134 - logoPreview = '/logo' 134 + logoPreview = '/favicon.ico' 135 135 } 136 136 } catch (e) { 137 137 toast.error(e instanceof ApiError ? e.message : $_('admin.failedToLoadConfig'))
+1 -1
frontend/src/lib/serverConfig.svelte.ts
··· 64 64 link.rel = "icon"; 65 65 document.head.appendChild(link); 66 66 } 67 - link.href = "/logo"; 67 + link.href = "/favicon.ico"; 68 68 } else if (link) { 69 69 link.remove(); 70 70 }