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:
parent
61158d5540
commit
60de57163e
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue