Skip to content

Commit 0cb28e0

Browse files
committed
Check main contributor in author data to submit to Thoth
Issue: documentacao-e-tarefas/desenvolvimento_e_infra#994 Signed-off-by: Thiago Brasil <thiago@lepidus.com.br>
1 parent 9a3320f commit 0cb28e0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

classes/factories/ThothContributionFactory.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public function createFromAuthor($author, $primaryContactId = null)
3737

3838
private function isMainContribution($author, $primaryContactId = null)
3939
{
40+
if ($mainContribution = $author->getData('mainContribution')) {
41+
return $mainContribution;
42+
}
43+
4044
return $primaryContactId == $author->getId();
4145
}
4246

0 commit comments

Comments
 (0)