Commit 5a79ad24 authored by Thomas Löffler's avatar Thomas Löffler

Remove entries from updated contributions which were created

parent bb9900e0
Pipeline #8425 passed with stages
in 4 minutes and 40 seconds
......@@ -79,6 +79,9 @@ class Contributions implements \Psr\Http\Server\MiddlewareInterface
$contributions['statistics'][$type] += count($data);
$contributionType = $updated ? 'updated' : 'created';
foreach ($data as $item) {
if ($updated && $item['created_at'] === $item['updated_at']) {
continue;
}
if (!isset($contributions['contributors'][$item['author']['id']])) {
$contributions['contributors'][$item['author']['id']] = [
'contributions' => [
......
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