Fixed profile image checking for indexed description instead of image.

This commit is contained in:
ThePendulum 2018-07-01 03:32:53 +02:00
parent 1b1323dc3d
commit cb6fd0c7f6
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');
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})`);
return user.indexed.profile.image;