]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Move GET starred/{id} to POST item/{id}/star
[friendica.git] / src / Model / Profile.php
index b56df5bc5fb04dad3ce6dd1873aea10295223779..676cd0b40ca29790d34f6df76c8017b1b2dcf736 100644 (file)
@@ -166,7 +166,7 @@ class Profile
                        }
                }
 
-               $profile = User::getOwnerDataById($user['uid'], false);
+               $profile = !empty($user['uid']) ? User::getOwnerDataById($user['uid'], false) : [];
 
                if (empty($profile) && empty($profiledata)) {
                        Logger::log('profile error: ' . DI::args()->getQueryString(), Logger::DEBUG);
@@ -592,7 +592,7 @@ class Profile
                                $condition = ['parent-uri' => $rr['uri'], 'uid' => $rr['uid'], 'author-id' => public_contact(),
                                        'vid' => [Verb::getID(Activity::ATTEND), Verb::getID(Activity::ATTENDMAYBE)],
                                        'visible' => true, 'deleted' => false];
-                               if (!Item::exists($condition)) {
+                               if (!Post::exists($condition)) {
                                        continue;
                                }