forked from friendica/friendica-addons
And now it really works
This commit is contained in:
parent
2f5fea4f8c
commit
72b8bc815c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue