0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

🐛 Fixed user images not being imported properly (#8834)

closes #8833

- Don't re-run gravatar check when importing users
This commit is contained in:
Hannah Wolfe 2017-08-03 12:59:05 +04:00 committed by Katharina Irrgang
parent 61158d5540
commit 60de57163e

View file

@ -110,7 +110,8 @@ User = ghostBookshelf.Model.extend({
ghostBookshelf.Model.prototype.onSaving.apply(this, arguments);
if (self.hasChanged('email') && self.get('email')) {
// If the user's email is set & has changed & we are not importing
if (self.hasChanged('email') && self.get('email') && !options.importing) {
tasks.gravatar = (function lookUpGravatar() {
return gravatar.lookup({
email: self.get('email')