mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 05:23:41 +00:00
[catavatar] Remove unused code
- The $seed variable isn't used in that function, which removes the need for the database call.
This commit is contained in:
parent
acdb5c551f
commit
93892fd25a
1 changed files with 0 additions and 7 deletions
|
@ -64,13 +64,6 @@ function catavatar_addon_settings_post(App $a, &$s)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete the current cached cat avatar
|
|
||||||
$condition = ['uid' => local_user(), 'blocked' => false,
|
|
||||||
'account_expired' => false, 'account_removed' => false];
|
|
||||||
$user = DBA::selectFirst('user', ['email'], $condition);
|
|
||||||
|
|
||||||
$seed = DI::pConfig()->get(local_user(), 'catavatar', 'seed', md5(trim(strtolower($user['email']))));
|
|
||||||
|
|
||||||
if (!empty($_POST['catavatar-usecat'])) {
|
if (!empty($_POST['catavatar-usecat'])) {
|
||||||
$url = DI::baseUrl()->get() . '/catavatar/' . local_user() . '?ts=' . time();
|
$url = DI::baseUrl()->get() . '/catavatar/' . local_user() . '?ts=' . time();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue