add missing user_preferences parameter

This commit is contained in:
teddit 2021-03-21 21:22:14 +01:00
parent c120c8b5a5
commit 4c33ea345d

View File

@ -36,7 +36,7 @@ module.exports = function(request, fs) {
return url.replace(/&/g, '&')
}
this.teddifyUrl = (url) => {
this.teddifyUrl = (url, user_preferences) => {
try {
let u = new URL(url)
if(u.host === 'www.reddit.com' || u.host === 'reddit.com') {