diff --git a/packages/conf/DittoConf.ts b/packages/conf/DittoConf.ts index 576cc7e8..59a3fde4 100644 --- a/packages/conf/DittoConf.ts +++ b/packages/conf/DittoConf.ts @@ -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 { diff --git a/packages/ditto/views/mastodon/statuses.ts b/packages/ditto/views/mastodon/statuses.ts index 71b6b535..e4084123 100644 --- a/packages/ditto/views/mastodon/statuses.ts +++ b/packages/ditto/views/mastodon/statuses.ts @@ -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,