Fixed avatar image with flex user

This commit is contained in:
Matias Griese
2019-02-07 09:58:45 +02:00
parent 740e8a3973
commit 68be7a1881
2 changed files with 3 additions and 3 deletions

View File

@@ -652,12 +652,12 @@ class Admin
$data[$type] = $obj;
} elseif (preg_match('|users/|', $type)) {
$obj = User::load(preg_replace('|users/|', '', $type));
$obj->merge($this->cleanUserPost($post));
$obj->update($this->cleanUserPost($post));
$data[$type] = $obj;
} elseif (preg_match('|user/|', $type)) {
$obj = User::load(preg_replace('|user/|', '', $type));
$obj->merge($this->cleanUserPost($post));
$obj->update($this->cleanUserPost($post));
$data[$type] = $obj;
} elseif (preg_match('|config/|', $type)) {

View File

@@ -1,5 +1,5 @@
{% if data.avatar %}
<label><img src="{{ base_url_simple ~ '/' ~ (data.avatar|first).path }}" /></label>
<label><img src="{{ data.avatarUrl }}" /></label>
{% else %}
<label><img referrerpolicy="no-referrer" src="https://www.gravatar.com/avatar/{{ data.email|md5 }}?s=200" /></label>
{% endif %}