Changed comments

This commit is contained in:
Michael 2021-05-26 18:15:07 +00:00
parent 76e6a71822
commit c6a56985a8
2 changed files with 2 additions and 2 deletions

View File

@ -1355,7 +1355,7 @@ class Item
public static function storeForUserByUriId(int $uri_id, int $uid, array $fields = [], int $source_uid = 0)
{
if ($uid == $source_uid) {
Logger::warning('target UID must be be equal to the source UID', ['uri-id' => $uri_id, 'uid' => $uid]);
Logger::warning('target UID must not be be equal to the source UID', ['uri-id' => $uri_id, 'uid' => $uid]);
return 0;
}

View File

@ -312,7 +312,7 @@ class User
*/
public static function getIdForURL(string $url)
{
// Avoid any database requests when the hostname isn't even part of the url.
// Avoid database queries when the local node hostname isn't even part of the url.
if (!Contact::isLocal($url)) {
return 0;
}