convert reddit.com links to instance domain

This commit is contained in:
teddit
2021-01-16 21:14:12 +01:00
parent 7b90601dae
commit fff9c2d5b9
2 changed files with 24 additions and 6 deletions
+6
View File
@@ -40,6 +40,12 @@ const config = {
shorts: 60 * 60 * 24 * 31,
wikis: 60* 60 * 24 * 7
},
convert_urls: {
/**
* When enabled, all the domains in the content (e.g. comments, sidebars, wikis etc.) will be replaced with a privacy respecting version.
*/
reddit: true, // old.reddit.com and reddit.com --> instance domain (config.domain)
},
valid_media_domains: ['preview.redd.it', 'external-preview.redd.it', 'i.redd.it', 'v.redd.it', 'a.thumbs.redditmedia.com', 'b.thumbs.redditmedia.com', 'emoji.redditmedia.com', 'thumbs.gfycat.com', 'i.ytimg.com'],
reddit_api_error_text: `Seems like your instance is either blocked (e.g. due to API rate limiting), reddit is currently down, or your API key is expired and not renewd properly. This can also happen for other reasons.`
};