mirror of
https://github.com/traberph/short.git
synced 2026-11-22 22:55:12 +00:00
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:
+2
-1
@@ -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:");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user