diff --git a/src/sora.cpp b/src/sora.cpp index 2d2475ca..d798c53c 100644 --- a/src/sora.cpp +++ b/src/sora.cpp @@ -269,7 +269,7 @@ Sora::ConvertForwardingFilter(const nb::handle value) { try { auto object = forwarding_filter_value.as_object(); - filter.action = boost::optional(object["action"].as_string()); + filter.action = std::string(object["action"].as_string()); for (auto or_rule : object["rules"].as_array()) { std::vector rules; for (auto and_rule_value : or_rule.as_array()) {