Fixed profile image checking for indexed description instead of image.

This commit is contained in:
DebaucheryLibrarian 2024-09-11 05:16:56 +02:00
parent e087e47069
commit 438ba05260
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const textToStream = require('./textToStream.js');
const save = require('./save.js'); const save = require('./save.js');
async function saveProfileImage(user, args) { async function saveProfileImage(user, args) {
if (!args.redownloadProfile && user.indexed.profile.description) { if (!args.redownloadProfile && user.indexed.profile.image) {
console.log('\x1b[33m%s\x1b[0m', `Ignoring already present profile image for '${user.name}' (https://reddit.com/user/${user.name})`); console.log('\x1b[33m%s\x1b[0m', `Ignoring already present profile image for '${user.name}' (https://reddit.com/user/${user.name})`);
return user.indexed.profile.image; return user.indexed.profile.image;