]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Set CORS header fields to support Halcyon
[friendica.git] / mod / photos.php
index df843846456d613522f83fa45d272402c1937a81..b0bd79b8f52afd17dfdf9034363d27f31c028821 100644 (file)
@@ -73,7 +73,7 @@ function photos_init(App $a) {
                $a->profile_uid = $user['uid'];
                $is_owner = (local_user() && (local_user() == $a->profile_uid));
 
-               $profile = Profile::getByNickname($nick, $a->profile_uid);
+               $profile = Profile::getByNickname($nick);
 
                $account_type = Contact::getAccountType($profile);
 
@@ -1275,7 +1275,7 @@ function photos_content(App $a)
                }
 
                if (!empty($link_item['parent']) && !empty($link_item['uid'])) {
-                       $condition = ["`parent` = ? AND `gravity` != ?",  $link_item['parent'], GRAVITY_PARENT];
+                       $condition = ["`parent` = ? AND `gravity` = ?",  $link_item['parent'], GRAVITY_COMMENT];
                        $total = Post::count($condition);
 
                        $pager = new Pager(DI::l10n(), DI::args()->getQueryString());