]> git.mxchange.org Git - friendica-addons.git/commitdiff
[catavatar] Remove unused code
authorBenjamin Lorteau <benjamin.lorteau@cbsinteractive.com>
Mon, 28 Jun 2021 02:12:40 +0000 (22:12 -0400)
committerBenjamin Lorteau <benjamin.lorteau@cbsinteractive.com>
Mon, 28 Jun 2021 02:12:40 +0000 (22:12 -0400)
- The $seed variable isn't used in that function, which removes the need for the database call.

catavatar/catavatar.php

index 47ff6698d340b95337295774090fbac82836686d..6ba214991cb52ea07d9287778802b2b6b7f3d1fb 100644 (file)
@@ -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();