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)) {
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;