]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
New function "isAuthenticated"
[friendica.git] / src / Model / Item.php
index 8e138c0cb3063d84c0ac9562d1d279465d2e8e52..c73ea99b1bfb3d863207f1827253fb6ad59ec7c4 100644 (file)
@@ -3029,7 +3029,7 @@ class Item extends BaseObject
         */
        public static function performLike($item_id, $verb)
        {
-               if (!local_user() && !remote_user()) {
+               if (!Session::isAuthenticated()) {
                        return false;
                }
 
@@ -3428,7 +3428,7 @@ class Item extends BaseObject
                }
 
                // Update the cached values if there is no "zrl=..." on the links.
-               $update = (!local_user() && !remote_user() && ($item["uid"] == 0));
+               $update = (!Session::isAuthenticated() && ($item["uid"] == 0));
 
                // Or update it if the current viewer is the intented viewer.
                if (($item["uid"] == local_user()) && ($item["uid"] != 0)) {