]> git.mxchange.org Git - friendica.git/commitdiff
Add logging to track a Notice messages
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Oct 2021 23:18:00 +0000 (19:18 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 4 Oct 2021 00:59:41 +0000 (20:59 -0400)
- Part of https://github.com/friendica/friendica/issues/10755#issuecomment-933040517

src/Model/User.php

index 8f69aa87c8fe925b02279049e8eacf4bba8162b3..3178b888e7c03fa90378cc047f4900fe1e74d2ab 100644 (file)
@@ -850,6 +850,10 @@ class User
         */
        public static function getAvatarUrl(array $user, string $size = ''):string
        {
+               if (empty($user['nickname'])) {
+                       DI::logger()->warning('Missing user nickname key', ['trace' => System::callstack(20)]);
+               }
+
                $url = DI::baseUrl() . '/photo/';
 
                switch ($size) {