Let page owners turn logo.dev logos on and off

Link pages get a "Website logos" switch on the appearance tab
(stored as pages.show_logos, default on). When off, buttons show
the letter placeholder and the logo.dev credit is hidden. The switch
is disabled with a hint when the server has no LOGO_DEV_TOKEN, which
/me now reports as `logoDev`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 16:31:56 +02:00
co-authored by Claude Opus 5.5
parent 624517e010
commit 55d2b9433f
15 changed files with 712 additions and 15 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ import { openDb } from "../src/server/db/index.js";
export const BASE_URL = "https://short.test";
export function setup() {
export function setup(overrides: Partial<Config> = {}) {
const config: Config = {
baseUrl: BASE_URL,
oidc: { issuer: "https://auth.test/", clientId: "id", clientSecret: "secret" },
@@ -22,6 +22,7 @@ export function setup() {
disableAttribution: false,
retentionDays: 90,
port: 0,
...overrides,
};
const db = openDb(":memory:");