mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-08-28 21:48:16 +00:00
fix: Properly show email in account page when OIDC email_claim is set
This commit is contained in:
@@ -25,6 +25,10 @@ pub(crate) async fn third_party_route(
|
||||
let sender_user = body.identity.expect_sender_user()?;
|
||||
let mut threepids = vec![];
|
||||
|
||||
if !services.threepid.email_requirement().may_view() {
|
||||
return Ok(get_3pids::v3::Response::new(vec![]));
|
||||
}
|
||||
|
||||
if let Some(email) = services
|
||||
.threepid
|
||||
.get_email_for_localpart(sender_user.localpart())
|
||||
|
||||
Reference in New Issue
Block a user