Skip to content

Commit

Permalink
馃悰 Fixed user images not being imported properly (#8834)
Browse files Browse the repository at this point in the history
closes #8833

- Don't re-run gravatar check when importing users
  • Loading branch information
ErisDS authored and kirrg001 committed Aug 3, 2017
1 parent 61158d5 commit 60de571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/server/models/user.js
Expand Up @@ -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')
Expand Down

0 comments on commit 60de571

Please sign in to comment.