Skip to content

Commit

Permalink
fixup! feat(polls): allow editing of draft polls
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Dec 4, 2024
1 parent 124f93b commit 7f6426a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/Model/Poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,17 @@ public function setOptions(array $options): void {
$this->setter('options', [$jsonOptions]);
}

public function getOptions(): string {
return $this->options;
}

/**
* @param string $question
* @return void
* @throws PollPropertyException
*/
public function setQuestion(string $question): void {
nvlog($question);
$question = trim($question);
if ($question === '' || strlen($question) > 32_000) {
throw new PollPropertyException(PollPropertyException::REASON_QUESTION);
}

$this->setter('question', [$question]);
}

public function getQuestion(): string {
return $this->question;
}
}

0 comments on commit 7f6426a

Please sign in to comment.