Remove linkPreview cache config, rm stray console.log

This commit is contained in:
Alex Gleason 2025-03-08 19:34:59 -06:00
parent affea45a08
commit 26990bcf5e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 0 additions and 10 deletions

View file

@ -422,7 +422,6 @@ export class DittoConf {
get caches(): {
nip05: { max: number; ttl: number };
favicon: { max: number; ttl: number };
linkPreview: { max: number; ttl: number };
translation: { max: number; ttl: number };
} {
const env = this.env;
@ -442,13 +441,6 @@ export class DittoConf {
ttl: Number(env.get('DITTO_CACHE_FAVICON_TTL') || 1 * 60 * 60 * 1000),
};
},
/** Link preview cache settings. */
get linkPreview(): { max: number; ttl: number } {
return {
max: Number(env.get('DITTO_CACHE_LINK_PREVIEW_MAX') || 3000),
ttl: Number(env.get('DITTO_CACHE_LINK_PREVIEW_TTL') || 12 * 60 * 60 * 1000),
};
},
/** Translation cache settings. */
get translation(): { max: number; ttl: number } {
return {

View file

@ -88,8 +88,6 @@ async function renderStatus(
const expiresAt = new Date(Number(event.tags.find(([name]) => name === 'expiration')?.[1]) * 1000);
console.log(event);
return {
id: event.id,
account,