mirror of https://github.com/mastodon/flodgatt
Fix double-escaping of delete payload (#95)
This commit is contained in:
parent
8843f18f5f
commit
dc6256d521
|
@ -440,7 +440,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
|
||||
[[package]]
|
||||
name = "flodgatt"
|
||||
version = "0.5.0"
|
||||
version = "0.6.1"
|
||||
dependencies = [
|
||||
"criterion 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"dotenv 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "flodgatt"
|
||||
description = "A blazingly fast drop-in replacement for the Mastodon streaming api server"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
authors = ["Daniel Long Sockwell <daniel@codesections.com", "Julian Laubstein <contact@julianlaubstein.de>"]
|
||||
edition = "2018"
|
||||
|
||||
|
|
|
@ -25,7 +25,12 @@ impl Message {
|
|||
"update" => Self::Update(Status(json["payload"].clone())),
|
||||
"conversation" => Self::Conversation(json["payload"].clone()),
|
||||
"notification" => Self::Notification(json["payload"].clone()),
|
||||
"delete" => Self::Delete(json["payload"].to_string()),
|
||||
"delete" => Self::Delete(
|
||||
json["payload"]
|
||||
.as_str()
|
||||
.unwrap_or_else(|| log_fatal!("Could not process `payload` in {:?}", json))
|
||||
.to_string(),
|
||||
),
|
||||
"filters_changed" => Self::FiltersChanged,
|
||||
unsupported_event => log_fatal!(
|
||||
"Received an unsupported `event` type from Redis: {}",
|
||||
|
|
Loading…
Reference in New Issue