fix crash on crazy misskey poll

This commit is contained in:
2021-09-07 21:22:08 +02:00
parent 7847df0e2b
commit 51e52bc24b
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ pub struct Poll {
/// The ID of the poll in the database.
pub id: String,
/// When the poll ends.
pub expires_at: String, // Datetime??
pub expires_at: Option<String>, // Datetime?? // XXX misskey polls can have null here WTF???
/// Is the poll currently expired?
pub expired: bool,
/// Does the poll allow multiple-choice answers?
File diff suppressed because one or more lines are too long