Skip to content

Commit

Permalink
feat(backend): Better callout anonymous polls
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Aug 28, 2023
1 parent 54b9eea commit 02e0363
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Service/PollService.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ protected function getPollBlocks(Poll $poll): array
];
}

if ($poll->anonymous === true) {
$blocks[] = [
'type' => 'section',
'text' => [
'type' => 'mrkdwn',
'text' => '🥷 Anonymous',
],
];
}

$blocks[] = [
'type' => 'section',
'block_id' => 'poll-actions',
Expand Down

0 comments on commit 02e0363

Please sign in to comment.