]> git.mxchange.org Git - friendica.git/commitdiff
Changed comments
authorMichael <heluecht@pirati.ca>
Wed, 26 May 2021 18:15:07 +0000 (18:15 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 26 May 2021 18:15:07 +0000 (18:15 +0000)
src/Model/Item.php
src/Model/User.php

index db75030477642dc15d8b6a9804635fb658395012..ac9af32a6968b24d39db3ffd6a597d877be0f41f 100644 (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;
                }
 
index 0482488e2b1668173640b4464e9d116b94565ee6..2131406d4a5f8cf2be7432c66b57f2839936224c 100644 (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;
                }