And now it really works

pull/583/head
Michael 2018-04-13 08:14:35 +00:00
parent 2f5fea4f8c
commit 72b8bc815c
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ function catavatar_addon_settings_post(App $a, &$s)
if (!empty($_POST['catavatar-usecat'])) {
$url = $a->get_baseurl() . '/catavatar/' . local_user();
$url = $a->get_baseurl() . '/catavatar/' . local_user() . '?ts=' . time();
$self = dba::selectFirst('contact', ['id'], ['uid' => local_user(), 'self' => true]);
if (!DBM::is_result($self)) {
@ -200,7 +200,7 @@ function catavatar_content(App $a)
throw new NotFoundException();
}
$seed = PConfig::get(local_user(), "catavatar", "seed", md5(trim(strtolower($user['email']))));
$seed = PConfig::get($uid, "catavatar", "seed", md5(trim(strtolower($user['email']))));
// from cat-avatar-generator.php
$imageurl = $seed . "-" . $size;