X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile.php;h=49d6fe261d2b2ca761ca1406c7c958c7de2c8970;hb=d643e00d33883584ff599d92a8929351c6e48503;hp=ab11b4d5fe509850c97c48fdc9e4346feb9f9215;hpb=5e5fde0a63c57d2873bfa29404110269ca9abeee;p=friendica.git diff --git a/mod/profile.php b/mod/profile.php index ab11b4d5fe..49d6fe261d 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -75,6 +75,7 @@ function profile_init(App $a) } $a->page['htmlhead'] .= '' . "\r\n"; + $a->page['htmlhead'] .= '' . "\r\n"; $a->page['htmlhead'] .= '' . "\r\n"; $a->page['htmlhead'] .= '' . "\r\n"; $a->page['htmlhead'] .= '' . "\r\n"; @@ -191,7 +192,7 @@ function profile_content(App $a, $update = 0) $o .= Widget::commonFriendsVisitor($a->profile['profile_uid']); if (x($_SESSION, 'new_member') && $is_owner) { - $o .= '' . L10n::t('Tips for New Members') . '' . EOL; + $o .= '
' . L10n::t('Tips for New Members') . '
'; } $commpage = $a->profile['page-flags'] == PAGE_COMMUNITY; @@ -336,16 +337,9 @@ function profile_content(App $a, $update = 0) $parents_arr[] = $rr['item_id']; } - $parents_str = implode(', ', $parents_arr); - - $items = q(item_query() . " AND `item`.`uid` = %d - AND `item`.`parent` IN (%s) - $sql_extra ", - intval($a->profile['profile_uid']), - dbesc($parents_str) - ); - - $items = conv_sort($items, 'created'); + $condition = ['uid' => $a->profile['profile_uid'], 'parent' => $parents_arr]; + $result = Item::selectForUser($a->profile['profile_uid'], [], $condition); + $items = conv_sort(dba::inArray($result), 'created'); } else { $items = []; } @@ -364,7 +358,7 @@ function profile_content(App $a, $update = 0) } } - $o .= conversation($a, $items, 'profile', $update); + $o .= conversation($a, $items, 'profile', $update, false, 'commented', local_user()); if (!$update) { $o .= alt_pager($a, count($items));