Browse Source

fix crash on crazy misskey poll

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

2
src/entities/poll.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?

8
src/entities/status.rs

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save