Allow upvoting own Q&A questions as an opt-in setting
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped

The new Q&A setting allow_self_upvote (off by default) lets participants
spend their upvote budget on their own questions, e.g. for prioritizing
topics. Without it, participants now see a short hint why their own
questions cannot be upvoted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-08 20:23:53 +01:00
1 parent ec0b13cae8
commit affc9a5ece
10 files changed
+59 -12

No files matched your search

+3 -2
View File
@@ -104,8 +104,9 @@ class Slide extends Entity
self::TYPE_QUIZ => ['time_limit' => 30],
// url as entered, video_id parsed from it, start in seconds
self::TYPE_YOUTUBE => ['url' => '', 'video_id' => '', 'start' => 0, 'autoplay' => false],
// upvotes per participant in the voting stage (1..QA_MAX_UPVOTES)
self::TYPE_QA => ['max_upvotes' => 3],
// upvotes per participant in the voting stage (1..QA_MAX_UPVOTES);
// allow_self_upvote: upvotes on own questions (for prioritizing topics, off by default)
self::TYPE_QA => ['max_upvotes' => 3, 'allow_self_upvote' => false],
// The correct order is the order of the slide_options (position), revealed when voting closes.
self::TYPE_ORDER => [],
];