From: Michael Date: Fri, 13 Apr 2018 08:14:35 +0000 (+0000) Subject: And now it really works X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=72b8bc815c0af5bbf0f682b3fffa35ffcc1c602c;p=friendica-addons.git And now it really works --- diff --git a/catavatar/catavatar.php b/catavatar/catavatar.php index aaa85972..9c1f2290 100644 --- a/catavatar/catavatar.php +++ b/catavatar/catavatar.php @@ -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;