From 93892fd25afd1306ecc1b1872fca5bc69568b51e Mon Sep 17 00:00:00 2001 From: Benjamin Lorteau Date: Sun, 27 Jun 2021 22:12:40 -0400 Subject: [PATCH] [catavatar] Remove unused code - The $seed variable isn't used in that function, which removes the need for the database call. --- catavatar/catavatar.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/catavatar/catavatar.php b/catavatar/catavatar.php index 47ff6698..6ba21499 100644 --- a/catavatar/catavatar.php +++ b/catavatar/catavatar.php @@ -64,13 +64,6 @@ function catavatar_addon_settings_post(App $a, &$s) 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'])) { $url = DI::baseUrl()->get() . '/catavatar/' . local_user() . '?ts=' . time(); -- 2.39.5