mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Remove linkPreview cache config, rm stray console.log
This commit is contained in:
parent
affea45a08
commit
26990bcf5e
2 changed files with 0 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue