mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-25 11:01:11 +00:00
Add security context to actor
This commit is contained in:
parent
ae00d965e1
commit
19e23fbfa5
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
use activitystreams::{
|
use activitystreams::{
|
||||||
actor::Application, context, endpoint::EndpointProperties, ext::Extensible,
|
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 actix_web::{middleware::Logger, web, App, HttpResponse, HttpServer, Responder};
|
||||||
use bb8_postgres::tokio_postgres;
|
use bb8_postgres::tokio_postgres;
|
||||||
|
@ -64,7 +64,7 @@ async fn actor_route(state: web::Data<State>) -> Result<impl Responder, MyError>
|
||||||
.set_summary_xsd_string("AodeRelay bot")?
|
.set_summary_xsd_string("AodeRelay bot")?
|
||||||
.set_name_xsd_string("AodeRelay")?
|
.set_name_xsd_string("AodeRelay")?
|
||||||
.set_url_xsd_any_uri(state.generate_url(UrlKind::Actor))?
|
.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
|
application
|
||||||
.extension
|
.extension
|
||||||
|
|
Loading…
Reference in a new issue