Send Update(Person) after adding alias
This commit is contained in:
parent
9e5672929b
commit
9768fc6228
1 changed files with 10 additions and 1 deletions
|
@ -22,7 +22,10 @@ use mitra_models::{
|
||||||
};
|
};
|
||||||
use mitra_utils::passwords::hash_password;
|
use mitra_utils::passwords::hash_password;
|
||||||
|
|
||||||
use crate::activitypub::identifiers::profile_actor_id;
|
use crate::activitypub::{
|
||||||
|
builders::update_person::prepare_update_person,
|
||||||
|
identifiers::profile_actor_id,
|
||||||
|
};
|
||||||
use crate::errors::ValidationError;
|
use crate::errors::ValidationError;
|
||||||
use crate::http::get_request_base_url;
|
use crate::http::get_request_base_url;
|
||||||
use crate::mastodon_api::{
|
use crate::mastodon_api::{
|
||||||
|
@ -88,6 +91,12 @@ async fn add_alias_view(
|
||||||
¤t_user.id,
|
¤t_user.id,
|
||||||
profile_data,
|
profile_data,
|
||||||
).await?;
|
).await?;
|
||||||
|
prepare_update_person(
|
||||||
|
db_client,
|
||||||
|
&instance,
|
||||||
|
¤t_user,
|
||||||
|
None,
|
||||||
|
).await?.enqueue(db_client).await?;
|
||||||
let aliases = get_aliases(
|
let aliases = get_aliases(
|
||||||
db_client,
|
db_client,
|
||||||
&get_request_base_url(connection_info),
|
&get_request_base_url(connection_info),
|
||||||
|
|
Loading…
Reference in a new issue