GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit 3aad58c3 authored by Evan Prodromou's avatar Evan Prodromou

Only show some profiles in events

parent 5df3c8bc
......@@ -47,6 +47,7 @@ define('PROFILES_PER_MINILIST', 8);
class ProfileMiniList extends ProfileList
{
const MAX_PROFILES = PROFILES_PER_MINILIST; // put it in the class
function startList()
{
......
......@@ -174,9 +174,8 @@ class EventListItem extends NoticeListItemAdapter
foreach ($responses as $response) {
$ids[] = $response->profile_id;
}
common_debug("IDS = " . implode(',', $ids));
$ids = array_slice($ids, 0, ProfileMiniList::MAX_PROFILES + 1);
$profiles = Profile::pivotGet('id', $ids);
common_debug("Profiles = " . print_r($profiles, true));
$profile = new ArrayWrapper(array_values($profiles));
$minilist = new ProfileMiniList($profile, $out);
$minilist->show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment