Skip to content

Commit

Permalink
note when a claim is a revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Oct 2, 2024
1 parent e79b3de commit 6ca40d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Community/Actions/CreateGameClaimAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ public function execute(Game $game): AchievementSetClaim
'username' => 'Claim Bot',
'avatar_url' => media_asset('UserPic/QATeam.png'),
'content' => route('game.show', $game) . "\n:new: " .
ClaimType::toString($claimType) . " claim made by " . $currentUser->displayName,
ClaimType::toString($claimType) .
($setType === ClaimSetType::Revision ? ' revision' : '') .
" claim made by " . $currentUser->displayName,
];
(new Client())->post($webhookUrl, ['json' => $payload]);
}
Expand Down

0 comments on commit 6ca40d0

Please sign in to comment.