fix crash on crazy misskey poll

master
Ondřej Hruška 3 years ago
parent 7847df0e2b
commit 51e52bc24b
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      src/entities/poll.rs
  2. 8
      src/entities/status.rs

@ -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
Loading…
Cancel
Save