From 19e23fbfa59e1295c1f42111820acc24be04f87c Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 19 Mar 2020 12:09:33 -0500 Subject: [PATCH] Add security context to actor --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c7c4917..f75ac65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use activitystreams::{ actor::Application, context, endpoint::EndpointProperties, ext::Extensible, - object::properties::ObjectProperties, + object::properties::ObjectProperties, security, }; use actix_web::{middleware::Logger, web, App, HttpResponse, HttpServer, Responder}; use bb8_postgres::tokio_postgres; @@ -64,7 +64,7 @@ async fn actor_route(state: web::Data) -> Result .set_summary_xsd_string("AodeRelay bot")? .set_name_xsd_string("AodeRelay")? .set_url_xsd_any_uri(state.generate_url(UrlKind::Actor))? - .set_context_xsd_any_uri(context())?; + .set_many_context_xsd_any_uris(vec![context(), security()])?; application .extension