@@ 51-55 (lines=5) @@ | ||
48 | $activities = $query->get(); |
|
49 | foreach ($activities as $key => $activity) |
|
50 | { |
|
51 | if (!array_key_exists($activity['user']['id'], $avatars)) { |
|
52 | $user = Sentinel::findById($activity['user']['id']); |
|
53 | $avatars[$activity['user']['id']] = isset($user->avatar) ? $user->avatar : ''; |
|
54 | } |
|
55 | $activities[$key]['user']['avatar'] = $avatars[$activity['user']['id']]; |
|
56 | ||
57 | if ($activity['event_key'] == 'create_link' || $activity['event_key'] == 'del_link') { |
|
58 | $activities[$key]['issue_link'] = []; |
@@ 1731-1735 (lines=5) @@ | ||
1728 | continue; |
|
1729 | } |
|
1730 | //get assignee avatar for kanban |
|
1731 | if (!array_key_exists($issue['assignee']['id'], $cache_avatars)) { |
|
1732 | $user = Sentinel::findById($issue['assignee']['id']); |
|
1733 | $cache_avatars[$issue['assignee']['id']] = isset($user->avatar) ? $user->avatar : ''; |
|
1734 | } |
|
1735 | $issues[$key]['assignee']['avatar'] = $cache_avatars[$issue['assignee']['id']]; |
|
1736 | } |
|
1737 | return; |
|
1738 | } |