From 72b8bc815c0af5bbf0f682b3fffa35ffcc1c602c Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 13 Apr 2018 08:14:35 +0000 Subject: [PATCH] And now it really works --- catavatar/catavatar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5