diff --git a/libraries/User.php b/libraries/User.php index e8916a3..3c65517 100644 --- a/libraries/User.php +++ b/libraries/User.php @@ -358,11 +358,6 @@ class User return [0, 'USER_NOT_EXIST']; } - // Check if the user has this user a friend - if (!$this->isFriends($uid)) { - return [0, 'ALREADY_REMOVED']; - } - // Remove friend Database::delete('friends', [ 'user_id' => [$this->id, '='], diff --git a/libraries/Users.php b/libraries/Users.php index 23bdeb5..7a552e7 100644 --- a/libraries/Users.php +++ b/libraries/Users.php @@ -465,7 +465,7 @@ class Users // Send the message Utils::sendMail( [ - $user->email() => $user->username, + $user->email => $user->username, ], Config::get('sitename') . ' Activation Mail', $message diff --git a/public/content/data/yuuno/css/yuuno.css b/public/content/data/yuuno/css/yuuno.css index 7cce262..100f0f9 100644 --- a/public/content/data/yuuno/css/yuuno.css +++ b/public/content/data/yuuno/css/yuuno.css @@ -1122,14 +1122,15 @@ a.default:active { } #notifications > div > .notification-close { - height: 40px; - width: 40px; + height: 40px !important; + width: 40px !important; margin: 0; - padding: 0; + padding: 0 !important; border: 0; margin-right: 4px; visibility: visible; flex-shrink: 0; + font-size: 2em !important; } #notifications > div > .notification-close > div { diff --git a/public/settings.php b/public/settings.php index b69deeb..2edafc4 100644 --- a/public/settings.php +++ b/public/settings.php @@ -1222,7 +1222,7 @@ if (Users::checkLogin()) { 'menu' => true, ], ], - ], + ]/*, 'messages' => [ 'title' => 'Messages', 'modes' => [ @@ -1259,7 +1259,7 @@ if (Users::checkLogin()) { 'menu' => false, ], ], - ], + ]*/, 'notifications' => [ 'title' => 'Notifications', 'modes' => [ diff --git a/sakura.php b/sakura.php index 814904d..3aec30a 100644 --- a/sakura.php +++ b/sakura.php @@ -8,7 +8,7 @@ namespace Sakura; // Define Sakura version -define('SAKURA_VERSION', '20160117'); +define('SAKURA_VERSION', '20160118'); define('SAKURA_VLABEL', 'Amethyst'); define('SAKURA_COLOUR', '#9966CC'); diff --git a/templates/yuuno/elements/indexPanel.twig b/templates/yuuno/elements/indexPanel.twig index 86ca831..20d11b7 100644 --- a/templates/yuuno/elements/indexPanel.twig +++ b/templates/yuuno/elements/indexPanel.twig @@ -32,7 +32,6 @@ All active users in the past {{ sakura.onlineTimeout / 60 }} minute{% if sakura.onlineTimeout != 60 %}s{% endif %}
{{ onlineUser.username }} | {{ onlineUser.elapsed.lastOnline }} |