Fixed profile image checking for indexed description instead of image.
This commit is contained in:
parent
e087e47069
commit
438ba05260
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue