mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Fixed showing default image for staff users
refs https://github.com/TryGhost/Toolbox/issues/356 - without this, users who have an account but no profile image will just show an empty background
This commit is contained in:
parent
df99e1aec3
commit
1a955dceb4
@ -38,8 +38,14 @@ function getActor(ev) {
|
||||
}
|
||||
|
||||
function getActorIcon(ev, assetRoot) {
|
||||
const defaultImage = `${assetRoot}/img/user-image.png`;
|
||||
|
||||
if (!ev.actor.id) {
|
||||
return `${assetRoot}/img/user-image.png`;
|
||||
return defaultImage;
|
||||
}
|
||||
|
||||
if (!ev.actor.image) {
|
||||
return defaultImage;
|
||||
}
|
||||
|
||||
return ev.actor.image;
|
||||
|
Loading…
Reference in New Issue
Block a user