]> git.mxchange.org Git - friendica.git/commitdiff
Code review changes
authorMichael <heluecht@pirati.ca>
Mon, 4 Oct 2021 14:01:46 +0000 (14:01 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 4 Oct 2021 14:01:46 +0000 (14:01 +0000)
src/Model/Contact.php
src/Module/Photo.php

index 0c7fd3909e4cc55497de569352979a4516925da5..1cff5a0c9c7105875215a867288c22e66d6bfd2d 100644 (file)
@@ -2218,11 +2218,7 @@ class Contact
                        self::updateAvatar($id, $ret['photo'], $update);
                }
 
-               if (empty($guid)) {
-                       $uriid = ItemURI::getIdByURI($ret['url']);
-               } else {
-                       $uriid = ItemURI::insert(['uri' => $ret['url'], 'guid' => $guid]);
-               }
+               $uriid = ItemURI::insert(['uri' => $ret['url'], 'guid' => $guid]);
 
                if (!$update) {
                        self::updateContact($id, $uid, $contact['url'], $ret['url'], ['failed' => false, 'last-update' => $updated, 'success_update' => $updated]);
index 660f908d229ef11cfe0b48f4d05db7543b744a31..39a8353b5d87f34bf0afb80d00ffbe0164ca9896 100644 (file)
@@ -113,7 +113,7 @@ class Photo extends BaseModule
                        }
 
                        if (empty($id)) {
-                               Logger::notice('No picture id was detected', ['parameters' => $parameters]);
+                               Logger::notice('No picture id was detected', ['parameters' => $parameters, 'query' => DI::args()->getQueryString()]);
                                throw new HTTPException\NotFoundException(DI::l10n()->t('The Photo is not available.'));
                        }